Align deployment ports and trusted proxy configuration
Run the dedicated calendar worker, bind the web service to loopback port 21005, and match the host nginx upstream. Trust forwarded headers only from the Docker subnet and replace untrusted forwarded client chains at the public proxy. Validate Compose without resolving production environment files; do not restart services.
This commit is contained in:
1 parent
f67a8ca402
commit
3178a2cc31
2 files changed
+9
-5
No files matched your search
@@ -12,7 +12,7 @@ x-backend: &backend
|
||||
services:
|
||||
api:
|
||||
<<: *backend
|
||||
command: [uvicorn, alphapulse.api.main:app, --host, 0.0.0.0, --port, "8000", --proxy-headers, --forwarded-allow-ips, "*"]
|
||||
command: [uvicorn, alphapulse.api.main:app, --host, 0.0.0.0, --port, "8000", --proxy-headers, --forwarded-allow-ips, "172.18.0.0/16"]
|
||||
|
||||
crawler:
|
||||
<<: *backend
|
||||
@@ -28,6 +28,10 @@ services:
|
||||
<<: *backend
|
||||
command: [python, -m, alphapulse.trading.engine]
|
||||
|
||||
calendar:
|
||||
<<: *backend
|
||||
command: [python, -m, alphapulse.calendar.worker]
|
||||
|
||||
web:
|
||||
build:
|
||||
context: ../web
|
||||
@@ -35,7 +39,7 @@ services:
|
||||
restart: unless-stopped
|
||||
depends_on: [api]
|
||||
ports:
|
||||
- 127.0.0.1:21030:80
|
||||
- 127.0.0.1:21005:80
|
||||
networks: [dev_default]
|
||||
|
||||
networks:
|
||||
|
||||
Reference in new issue
Block a user