From a4c5c9259ff5ddbdb5a202b2155ddbfbf7f84849 Mon Sep 17 00:00:00 2001 From: mahmood Date: Thu, 10 Sep 2026 14:59:25 +0330 Subject: [PATCH] Fix some for docker ' --- .gitignore | 8 ++++---- apps/admin-panel/nginx.conf | 2 +- apps/user-app/nginx.conf | 2 +- docker-compose.yml | 6 ++++++ 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index fe0ff89..430b3ba 100644 --- a/.gitignore +++ b/.gitignore @@ -8,7 +8,7 @@ node_modules/ apps/api/generated/ apps/api/dist/ -# Intermediate build caches — release artifacts ARE committed for Dokploy copy-only deploys -# apps/api/release/ ← committed (app.js + prisma) -# apps/admin-panel/dist/ ← committed -# apps/user-app/dist/ ← committed +# Release artifacts ARE committed for Dokploy copy-only deploys: +# apps/api/release/app.js + apps/api/release/vendor/ (Prisma) +# apps/admin-panel/dist/ +# apps/user-app/dist/ diff --git a/apps/admin-panel/nginx.conf b/apps/admin-panel/nginx.conf index 26b716c..fd8e9f0 100644 --- a/apps/admin-panel/nginx.conf +++ b/apps/admin-panel/nginx.conf @@ -11,7 +11,7 @@ server { resolver 127.0.0.11 valid=10s ipv6=off; location /api/ { - set $api_upstream http://api:3000; + set $api_upstream http://goldbank-api:3000; proxy_pass $api_upstream$request_uri; proxy_http_version 1.1; proxy_set_header Host $host; diff --git a/apps/user-app/nginx.conf b/apps/user-app/nginx.conf index 26b716c..fd8e9f0 100644 --- a/apps/user-app/nginx.conf +++ b/apps/user-app/nginx.conf @@ -11,7 +11,7 @@ server { resolver 127.0.0.11 valid=10s ipv6=off; location /api/ { - set $api_upstream http://api:3000; + set $api_upstream http://goldbank-api:3000; proxy_pass $api_upstream$request_uri; proxy_http_version 1.1; proxy_set_header Host $host; diff --git a/docker-compose.yml b/docker-compose.yml index 06febb9..7ff1e68 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -35,6 +35,12 @@ services: expose: - "3000" restart: unless-stopped + # The bare name "api" is ambiguous on Dokploy's shared network (other stacks + # register it too), which made nginx dial the wrong containers. Use a unique alias. + networks: + default: + aliases: + - goldbank-api admin-panel: build: