diff --git a/docker/jellyfin/docker-compose.yml b/docker/jellyfin/docker-compose.yml index c382b3e..a62d64f 100644 --- a/docker/jellyfin/docker-compose.yml +++ b/docker/jellyfin/docker-compose.yml @@ -54,3 +54,27 @@ services: - 22000:22000/udp - 21027:21027/udp restart: unless-stopped + + jellystat-db: + image: postgres:15.2 + environment: + POSTGRES_DB: 'jfstat' + POSTGRES_USER: postgres + POSTGRES_PASSWORD: $POSTGRES_PASSWORD + volumes: + - /docker/appdata/jellystat/postgres-data:/var/lib/postgresql/data + jellystat: + image: cyfershepard/jellystat:1.1.0 + environment: + POSTGRES_USER: postgres + POSTGRES_PASSWORD: $POSTGRES_PASSWORD + POSTGRES_IP: jellystat-db + POSTGRES_PORT: 5432 + JWT_SECRET: $JWT_SECRET + ports: + - "3000:3000" + volumes: + - /docker/appdata/jellystat/backup-data:/app/backend/backup-data + depends_on: + - jellystat-db + restart: unless-stopped