version: '3.8' services: chatgpt-codex-router: build: context: . dockerfile: docker/Dockerfile container_name: chatgpt-codex-router ports: - "3000:3000" - "1455:1455" volumes: - ./data:/app/data - ./logs:/app/logs - ./config.json:/app/.chatgpt-codex-router/config.json:ro environment: - PORT=3000 - LOG_LEVEL=info - NODE_ENV=production restart: unless-stopped healthcheck: test: ["CMD", "bun", "run", "-e", "fetch('http://localhost:3000/health').then(r => process.exit(r.ok ? 0 : 1))"] interval: 30s timeout: 10s retries: 3 start_period: 5s networks: - chatgpt-router-network networks: chatgpt-router-network: driver: bridge