plex播放记录同步到trakt
第一个docker-compose.yml
version: "2"
services:
plextraktsync:
image: ghcr.io/taxel/plextraktsync
command: sync
container_name: plextraktsync
restart: on-failure:2
volumes:
- ./config:/app/config
environment:
- PUID=1000
- PGID=1000
- TZ=Asia/Shanghai
然后运行docker compose run --rm plextraktsync sync
,会自动问你要需要的东西,配置完成开始同步以后ctrl+c
取消同步。
如果trakt是免费用户(免费限制collections数量为100),需要修改config/config.yml
,找到
plex_to_trakt:
collection: true
改为false
plex_to_trakt:
collection: false
docker-compose.yml
再改成
version: "2"
services:
scheduler:
image: mcuadros/ofelia:0.3
container_name: scheduler
depends_on:
- plextraktsync
command: daemon --docker
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
labels:
ofelia.job-run.plextraktsync.schedule: "0 */6 * * *"
ofelia.job-run.plextraktsync.container: "plextraktsync"
environment:
- TZ=Asia/Shanghai
plextraktsync_watch:
image: ghcr.io/taxel/plextraktsync
container_name: plextraktsync_watch
command: watch
restart: unless-stopped
volumes:
- ./config:/app/config
environment:
- PUID=1000
- PGID=1000
- TZ=Asia/Shanghai
plextraktsync:
image: ghcr.io/taxel/plextraktsync
container_name: plextraktsync
command: sync
restart: unless-stopped
volumes:
- ./config:/app/config
environment:
- PUID=1000
- PGID=1000
- TZ=Asia/Shanghai
开始6小时同步一次+实时监控
docker-compose up -d