Files
ghbot/docker-compose.deploy.yml
20ichrish 21d82c5413
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 3m25s
Add CI workflow for Docker builds
- Gitea Actions workflow to build and push to container registry
- Deployment compose file for pulling from registry

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 16:39:19 -08:00

39 lines
986 B
YAML

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