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 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 volumes: postgres_data: