chore(docker): publish ports only in development
docker-compose.yml is the production definition (deployed by Dokploy) and no longer publishes any port: postgres, mongo, redis and the API are reachable only on the compose network, and the web goes out through the platform's proxy (domain → service web, port 80). The ports moved to docker-compose.override.yml, which Compose loads automatically locally and Dokploy (-f docker-compose.yml) does not. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
14
docker-compose.override.yml
Normal file
14
docker-compose.override.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
# Development only: published ports, so `npx nx serve api` / `npx nx serve web` and your tools
|
||||
# can reach the containers. Compose loads this file automatically with docker-compose.yml;
|
||||
# production (Dokploy) runs `-f docker-compose.yml` alone and publishes nothing.
|
||||
services:
|
||||
web:
|
||||
ports: ['8080:80']
|
||||
api:
|
||||
ports: ['3000:3000']
|
||||
postgres:
|
||||
ports: ['5432:5432']
|
||||
mongo:
|
||||
ports: ['27017:27017']
|
||||
redis:
|
||||
ports: ['6379:6379']
|
||||
Reference in New Issue
Block a user