Files
anime_manager/docker-compose.yml
Imrayya 1471fd0e3d
All checks were successful
Docker Build / docker (push) Successful in 19s
chore(docker): update healthcheck to use /api/health endpoint
Use the dedicated health API endpoint instead of the root dashboard
route for more accurate container health monitoring.
2026-02-11 16:19:02 +07:00

43 lines
1.3 KiB
YAML

version: '3.8'
services:
anime-manager:
image: gitea.kareemhorstink.me/imrayya/anime_manager:latest
container_name: anime-manager
restart: unless-stopped
environment:
# Optional: Set to your host user/group ID to avoid permission issues
# Run `id` on your host to find these values
- PUID=1000
- PGID=1000
- TZ=UTC
volumes:
# Configuration (config.toml created here on first run)
- ./config:/config
# Database persistence
- ./data:/data
# Drop folder - where new anime files appear
# Bind to your actual download folder
- /path/to/your/drop/folder:/drop
# Media folder - your organized anime library
# Bind to your actual media library
- /path/to/your/media/library:/media
# Your existing rename.py script
# Mount it here so the container can execute it
- /path/to/your/rename.py:/app/rename.py:ro
# Optional: Persist logs outside container
- ./logs:/app/logs
ports:
- "5000:5000"
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:5000/api/health')"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s