Files
dtic-DIIAA/servicios/nginx/dtic-bitacoras/docker-compose.yml
T
Ricardo Monla 160da47f96 [P2606] WebServer NGINX: plan actualizado, ficha nodo, HTTPS operativo
- P2606: Plan v1.1 EN EJECUCIÓN. Fases 1-3 completadas.
- Ficha nodo srvv-nginx-rm.md. P2606 en adn/07_proyectos.md.
- Incluye cambios acumulados de sesiones anteriores.
2026-03-28 12:18:42 -03:00

57 lines
1.4 KiB
YAML

services:
postgres:
image: postgres:15-alpine
environment:
POSTGRES_USER: dtic_user
POSTGRES_PASSWORD: dtic_pass_2026
POSTGRES_DB: dtic_bitacoras
TZ: America/Argentina/Buenos_Aires
restart: unless-stopped
command: ["postgres", "-c", "timezone=America/Argentina/Buenos_Aires"]
ports:
- "5433:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./docker/init.sql:/docker-entrypoint-initdb.d/init.sql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U dtic_user -d dtic_bitacoras"]
interval: 5s
timeout: 5s
retries: 5
api:
build: ./backend
restart: unless-stopped
ports:
- "3002:3001"
environment:
NODE_ENV: development
PORT: 3001
DATABASE_URL: postgres://dtic_user:dtic_pass_2026@postgres:5432/dtic_bitacoras
JWT_SECRET: dtic_bitacoras_secret_2026
CORS_ORIGIN: "*"
TZ: America/Argentina/Buenos_Aires
depends_on:
postgres:
condition: service_healthy
volumes:
- ./backend/src:/app/src
- ../../../docs/proy:/app/docs/proy:ro
frontend:
build: ./frontend
restart: unless-stopped
ports:
- "5174:5173"
environment:
VITE_API_URL: /bitacoras/api
TZ: America/Argentina/Buenos_Aires
depends_on:
- api
volumes:
- ./frontend/src:/app/src
- ./frontend/vite.config.ts:/app/vite.config.ts
volumes:
postgres_data: