Taxel / PlexTraktSync

A python script that syncs the movies, shows and ratings between trakt and Plex (without needing a PlexPass or Trakt VIP subscription)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to setup the container

apriliars3 opened this issue · comments

Confirmation

  • I have read the README.md on the project homepage
  • I have checked if identical issue already exists
  • I have tried downgrading to find version that can be used as a workaround

The problem

Once the container is started, it always restarts before the command can be configured and entered "plextraktsync login".

Steps to reproduce the behavior

Use the docker compose and start the container. it´s not possible to setup because restart always.

Error trace / logs

No response

Expected behavior

I think need fix it

Inspect of problematic items

No response

Workarounds

No response

Install method

docker-compose

Config file contents

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=Europe/Tallinn

Version

0.25.17

Python Version

3.10.11

Plex Server Version

1.32.8.7639

Operating System and Version

DSM 7.2.1

Unsure what are you trying to do and what is happening. share the transcript of the session. The exact command what you run and what output do you get. Details matter.

@apriliars3 ,

I was in your exact spot. The only way I could get it to work was to set it up outside of a Docker container and then copy the following files to ./config:

  • .env
  • .pytrakt.json
  • config.yml
  • servers.yml

Here's my docker compose file, which utilizes its own .env file:

version: "3.8"
services:
  plex-trakt-sync:
    hostname: "plex-trakt-sync"
    container_name: "plex-trakt-sync"
    environment:
      - "PGID=${ID}"
      - "PUID=${ID}"
      - "TZ=${TZ}"
    command: sync
    image: "ghcr.io/taxel/plextraktsync"
    restart: "${RESTARTAPP}"
    networks:
      - ${DOCKERNETWORK}
    security_opt:
      - "${SECURITYOPS}:${SECURITYOPSSET}"
    volumes:
      - "${APPFOLDER}/plex-trakt-sync/config:/app/config"
    labels:
      - "dockupdater.enable=true"
networks:
  proxy:
    driver: bridge
    external: true

Hope this helps!

closing. reporter has dissapared