feat(dev-db): PG_* parametrizado p/ banco dev isolado via .env (default=produção)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
+6
-6
@@ -10,20 +10,20 @@ services:
|
|||||||
- subdominio-net
|
- subdominio-net
|
||||||
|
|
||||||
backend:
|
backend:
|
||||||
image: node:20-alpine
|
build: ./backend
|
||||||
container_name: subdominio-backend
|
container_name: subdominio-backend
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
working_dir: /app
|
working_dir: /app
|
||||||
command: node server.js
|
|
||||||
environment:
|
environment:
|
||||||
- PG_HOST=10.99.0.3
|
- PG_HOST=${SUB_DB_HOST:-10.99.0.3}
|
||||||
- PG_PORT=5432
|
- PG_PORT=5432
|
||||||
- PG_DATABASE=subdominio
|
- PG_DATABASE=${SUB_DB_NAME:-subdominio}
|
||||||
- PG_USER=mercado_admin
|
- PG_USER=${SUB_DB_USER:-mercado_admin}
|
||||||
- PG_PASSWORD=mErC4d0_2026_Club3!#
|
- PG_PASSWORD=${SUB_DB_PASS:-mErC4d0_2026_Club3!#}
|
||||||
- PORT=8019
|
- PORT=8019
|
||||||
volumes:
|
volumes:
|
||||||
- ./backend:/app
|
- ./backend:/app
|
||||||
|
- /app/node_modules
|
||||||
networks:
|
networks:
|
||||||
- subdominio-net
|
- subdominio-net
|
||||||
- soc
|
- soc
|
||||||
|
|||||||
Reference in New Issue
Block a user