services: casino-bot: build: . container_name: discord-casino-bot restart: unless-stopped env_file: .env user: "${UID:-1000}:${GID:-1000}" environment: - PYTHONUNBUFFERED=1 - DB_PATH=/app/data/blackjack.db volumes: - ./data:/app/data healthcheck: test: ["CMD", "python", "-c", "import sqlite3; sqlite3.connect('/app/data/blackjack.db').close()"] interval: 30s timeout: 10s retries: 3 start_period: 10s logging: driver: "json-file" options: { max-size: "10m", max-file: "3" }