version: '3.8' services: cr-bot: build: . container_name: cr-bot restart: unless-stopped ports: - "5000:3000" env_file: - .env environment: - NODE_ENV=production healthcheck: test: ["CMD", "node", "-e", "require('http').get('http://localhost:3000/ping', (r) => process.exit(r.statusCode === 200 ? 0 : 1))"] interval: 30s timeout: 10s retries: 3 start_period: 10s logging: driver: json-file options: max-size: "10m" max-file: "3"