Files
TwitchDropsMiner/docker-compose.yml
Fengqing Liu 8b2c28f76d Update Docker and CI workflow for refactored project structure
- Fix CI workflow to reference src/version.py instead of version.py
- Update Python import paths for version extraction in AppImage job
- Fix Dockerfile to use requirements.txt and copy src/ directory
- Remove deprecated --web flag from Docker CMD
- Remove obsolete version: '3.8' from docker-compose.yml
- Add Docker build job to CI workflow with multi-arch support (amd64, arm64)
- Push Docker images to GitHub Container Registry (ghcr.io)
- Add OCI image labels with build metadata to Dockerfile
- Update README with pre-built Docker image instructions
- Update funding information

All changes ensure compatibility with the refactored src/ package structure
and enable automated Docker image publishing via GitHub Actions.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-16 23:28:00 +11:00

32 lines
824 B
YAML

services:
twitch-drops-miner:
build: .
container_name: twitch-drops-miner
image: twitch-drops-miner:latest
ports:
- "8080:8080"
volumes:
# Mount data directory for persistent storage
- ./data:/app/data
environment:
# Set timezone (optional, defaults to UTC)
- TZ=UTC
# Docker environment flag
- DOCKER_ENV=1
restart: unless-stopped
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8080/api/status')"]
interval: 30s
timeout: 3s
retries: 3
start_period: 10s
# Optional: Limit resources
# deploy:
# resources:
# limits:
# cpus: '1'
# memory: 512M
# reservations:
# cpus: '0.5'
# memory: 256M