services: bar-rota: build: context: . target: production container_name: bar-rota restart: unless-stopped env_file: - path: .env required: false ports: - "${PORT:-8000}:8000" volumes: - ${DATA_DIR:-./data}:/app/data healthcheck: test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/health', timeout=5)"] interval: 30s timeout: 10s start_period: 10s retries: 3