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:
2026-10-03 14:16:50 +02:00
parent bf0294a188
commit b2c9be72c3
5 changed files with 38 additions and 13 deletions

View 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']