[Docker in Portainer]I finally figured out how to make this excellent script work by using docker #963
Replies: 4 comments 5 replies
-
Here is my configuration after discovering this discussion. Thanks for the help it gave me :) services:
scheduler:
image: mcuadros/ofelia:latest
container_name: scheduler
restart: "unless-stopped"
depends_on:
- plextraktsync
command: daemon --docker
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
labels:
ofelia.job-run.plextraktsync.schedule: "@every 2h"
ofelia.job-run.plextraktsync.container: "plextraktsync"
plextraktsync:
image: ghcr.io/taxel/plextraktsync:latest
container_name: plextraktsync
restart: "unless-stopped"
privileged: true
stdin_open: true
tty: true
volumes:
- /home/plextraktsync/plextraktsync/config:/app/config
plextraktsyncwatch:
image: ghcr.io/taxel/plextraktsync:latest
container_name: plextraktsyncwatch
restart: "unless-stopped"
privileged: true
stdin_open: true
tty: true
# command: watch
volumes:
- /home/plextraktsync/plextraktsyncwatch/config:/app/config |
Beta Was this translation helpful? Give feedback.
-
My steps:
Profit! Enabling Interactive & TTYMy Stack example
|
Beta Was this translation helpful? Give feedback.
-
I followed this method but instead of 3 containers I have 2. One for sync and one for watch. Sync incorporates the scheduler to run every 30 minutes. However now I'm getting to two scroobles for everything I watch. Any idea why? |
Beta Was this translation helpful? Give feedback.
-
Attempting to setup watch today to scrobble as I watch stuff. Following the info above but my watch container fails with this in the log:
Sync works as I get updates in Trakt within 2 hours. Also, I only want to scrobble my Guest user, since that's what I use to watch. Any way to do that? Thanks in advance. Here's my stack: version: '2'
services:
plextraktsync:
image: ghcr.io/taxel/plextraktsync:latest
command: sync
container_name: plextraktsync
restart: on-failure:2
environment:
- TZ=America/New_York
volumes:
- /var/lib/docker/volumes/plextraktsync/config:/config
scheduler:
image: mcuadros/ofelia:latest
container_name: plextraktsync-scheduler
restart: unless-stopped
depends_on:
- plextraktsync
command: daemon --docker
environment:
- TZ=Americas/New_York
volumes:
- /var/lib/docker/volumes/plextraktsync/config:/config
- /var/run/docker.sock:/var/run/docker.sock:ro
labels:
ofelia.job-run.plextraktsync.schedule: "@every 2h"
ofelia.job-run.plextraktsync.container: "plextraktsync"
plextraktsyncwatch:
image: ghcr.io/taxel/plextraktsync:latest
container_name: plextraktsync-watch
restart: unless-stopped
privileged: true
stdin_open: true
tty: true
command: watch
environment:
- TZ=America/New_York
volumes:
- /var/lib/docker/volumes/plextraktsync/config:/config
|
Beta Was this translation helpful? Give feedback.
-
You have to create a new container with interactive&TTY selected like this
and then mount a host dir for config files like this:
then,deploy the container and get into the console page:
follow the Taxel's setup guide to connect to your plex account,server,trakt
configure config.yml if you need.
For automatic sync, just use this stack
If watch mode enabled,the script won't sync watching status between plex and sync.
SO,I just simply dupilcate the container that we created above,name it as plextraktsyncwatch.
and override the command option with 'watch' like this:
then deploy it.
bang! everything works fine now!
NOW,we have 3 containers working together,one for Syncing,one for Scrobbling,and one for Automatic routine.
hope this would help those who want to use docker but dont know how.
Beta Was this translation helpful? Give feedback.
All reactions