feat: migrar backend unificado a Go 1.27 + SPA Vite embebido
This commit is contained in:
+6
-18
@@ -6,29 +6,17 @@ services:
|
||||
environment:
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASSWORD: postgres
|
||||
# Se conserva el nombre fisico de BD para no romper el volumen postgres_data.
|
||||
# Se conserva el nombre físico de BD para no romper el volumen postgres_data.
|
||||
POSTGRES_DB: cotizador_e3
|
||||
ports:
|
||||
- "5432:5432"
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
|
||||
api:
|
||||
build: ./api
|
||||
container_name: cotizador-uj-api
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "8000:8000"
|
||||
environment:
|
||||
- DB_HOST=postgres
|
||||
- DB_PORT=5432
|
||||
- DB_USER=postgres
|
||||
- DB_PASSWORD=postgres
|
||||
- DB_NAME=cotizador_e3
|
||||
- API_KEY=${API_KEY:-change-me}
|
||||
- JWT_SECRET=${JWT_SECRET:-change-me}
|
||||
depends_on:
|
||||
- postgres
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U postgres -d cotizador_e3"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 20
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
|
||||
Reference in New Issue
Block a user