fix(deploy): keep proxy attached across app rebuilds

This commit is contained in:
2026-08-02 18:15:16 +07:00 Unverified
parent 9bbde8b7b5
commit 53606c60af
2 changed files with 3 additions and 4 deletions
+2 -3
View File
@@ -2,8 +2,6 @@ services:
app:
build: .
restart: unless-stopped
ports:
- "8606:80"
expose:
- "3000"
env_file:
@@ -13,11 +11,12 @@ services:
nginx:
image: nginx:alpine
ports:
- "8606:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- app
network_mode: "service:app"
restart: unless-stopped
video-upload-scheduler:
+1 -1
View File
@@ -33,7 +33,7 @@ http {
listen 80;
location / {
proxy_pass http://127.0.0.1:3000;
proxy_pass http://app:3000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;