diff --git a/.env.example b/.env.example index 5c0a9ae..a52af0b 100644 --- a/.env.example +++ b/.env.example @@ -23,6 +23,9 @@ APP_URL=https://synth.example.com # Port for the backend HTTP server (inside the container). PORT=8080 +# Port for the backend HTTP server (outside the container). +EXT_PORT=8005 + # Logging level. Options: error, warn, info, debug, trace. # Format: "level" or "level,crate=level" RUST_LOG=info,ai_synth_backend=debug diff --git a/docker-compose.yml b/docker-compose.yml index 0fcf624..2d2ff9e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,7 +15,7 @@ services: networks: - internal ports: - - "127.0.0.1:${PORT:-8005}:8080" + - "127.0.0.1:${EXT_PORT:-8005}:8080" healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8080/api/v1/health"] interval: 30s