-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.example.yaml
More file actions
46 lines (44 loc) · 2.06 KB
/
docker-compose.example.yaml
File metadata and controls
46 lines (44 loc) · 2.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
services:
sync:
image: ghcr.io/bigspawn/anilist-mal-sync:latest
command: ["watch", "--once"]
ports:
- "18080:18080"
environment:
# User/Group ID for volume permissions (run: id -u / id -g)
- PUID=1000
- PGID=1000
# Required: API credentials
- ANILIST_CLIENT_ID=your_anilist_client_id
- ANILIST_CLIENT_SECRET=your_anilist_secret
- ANILIST_USERNAME=your_anilist_username
- MAL_CLIENT_ID=your_mal_client_id
- MAL_CLIENT_SECRET=your_mal_secret
- MAL_USERNAME=your_mal_username
# Watch mode interval (min: 1h, max: 168h / 7 days)
- WATCH_INTERVAL=12h
# Optional: Manual mappings file path
# - MAPPINGS_FILE_PATH=/home/appuser/.config/anilist-mal-sync/mappings.yaml
# Optional: ID Mapping settings
# - OFFLINE_DATABASE_ENABLED=true # Enable offline DB (default: true)
# - HATO_API_ENABLED=true # Enable Hato API (default: true)
# - HATO_API_URL=https://hato.malupdaterosx.moe # Hato API base URL
# - HATO_API_CACHE_DIR=/home/appuser/.config/anilist-mal-sync/hato-cache # Cache directory
# - HATO_API_CACHE_MAX_AGE=720h # Cache max age (default: 720h / 30 days)
# - ARM_API_ENABLED=false # Enable ARM API (default: false)
# - ARM_API_URL=https://arm.haglund.dev # ARM API base URL
# - JIKAN_API_ENABLED=false # Enable Jikan API for manga ID mapping
# - JIKAN_API_CACHE_DIR=/home/appuser/.config/anilist-mal-sync/jikan-cache
# - JIKAN_API_CACHE_MAX_AGE=168h
# - FAVORITES_SYNC_ENABLED=false # Enable favorites sync (requires Jikan API)
volumes:
- tokens:/home/appuser/.config/anilist-mal-sync
restart: unless-stopped
volumes:
tokens:
# Usage:
# 1. Copy to docker-compose.yaml and replace environment variables above with your credentials
# 2. Authenticate (needs port 18080 for OAuth): docker-compose run --rm --service-ports sync login
# 3. Preview changes (dry run): docker-compose run --rm sync sync --dry-run --all
# 4. Start watch daemon: docker-compose up -d
# 5. Check logs: docker-compose logs -f sync