version: '3.8' # Deployment compose file - pulls from Gitea registry instead of building locally # Usage: docker compose -f docker-compose.deploy.yml up -d services: discord-bot: # Pull from Gitea registry (update with your actual registry URL) image: ${REGISTRY_HOST:-gitea.local}/${REGISTRY_USER:-username}/ghbot:${IMAGE_TAG:-latest} container_name: discord-bot restart: unless-stopped volumes: # Seed file for initial database population (read-only) - ./seed.json:/app/seed.json:ro - ./conf:/app/conf:ro # Sound effects directory (read-only) - ./sfx:/app/sfx:ro # Database persistence - ./data:/app/data environment: - NODE_ENV=production deploy: resources: limits: memory: 512M reservations: memory: 256M healthcheck: test: ["CMD", "node", "-e", "process.exit(0)"] interval: 30s timeout: 10s retries: 3 start_period: 40s