version: '3.8' services: api: build: . container_name: conversation-allocation-api restart: unless-stopped ports: - "${PORT:-3000}:3000" env_file: - .env environment: - NODE_ENV=production volumes: - ./logs:/app/logs healthcheck: test: ["CMD", "node", "-e", "require('http').get('http://localhost:3000/api/v1/health', (res) => { process.exit(res.statusCode === 200 ? 0 : 1); })"] interval: 30s timeout: 3s start_period: 5s retries: 3 networks: - app-network networks: app-network: driver: bridge