From 53606c60af8cf2e4a85d10a5f4c10c7af6a00e56 Mon Sep 17 00:00:00 2001 From: gunshiz Date: Sun, 2 Aug 2026 18:15:16 +0700 Subject: [PATCH] fix(deploy): keep proxy attached across app rebuilds --- docker-compose.yml | 5 ++--- nginx.conf | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index b68dd48..67c6cf2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: diff --git a/nginx.conf b/nginx.conf index 4e163b8..d2fa502 100644 --- a/nginx.conf +++ b/nginx.conf @@ -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;