services:
  api:
    image: porfirio-sepomex-api-production:2026-08-18
    build:
      context: .
      dockerfile: Dockerfile.production
    env_file:
      - .env.production
    network_mode: host
    restart: unless-stopped
    healthcheck:
      test:
        - CMD
        - node
        - -e
        - "const socket = require('net').connect(process.env.APP_PORT, '127.0.0.1', () => { socket.destroy(); process.exit(0) }); socket.on('error', () => process.exit(1))"
      interval: 10s
      timeout: 5s
      retries: 5
      start_period: 10s
