Split media into scrobller and media-player

This commit is contained in:
Colin Hebert
2023-01-20 18:42:46 +01:00
parent 951c5e46d8
commit 1daf970ee9
9 changed files with 87 additions and 93 deletions

View File

@@ -0,0 +1,46 @@
name: Media-Player
services:
plex:
image: plexinc/pms-docker:plexpass
environment:
PLEX_UID: ${NASCOMPOSE_UID?}
PLEX_GID: ${NASCOMPOSE_GID?}
networks:
- default
- traefik
volumes:
- plex_transcode:/transcode/
- plex_config:/config/
- tv:/data/tv/
- movies:/data/movies/
restart: unless-stopped
labels:
traefik.enable: true
traefik.http.services.plex.loadbalancer.server.port: 32400
traefik.http.services.plex.loadbalancer.server.scheme: https
networks:
traefik:
external: true
volumes:
movies:
name: movies
driver_opts:
type: none
o: bind
device: ${NASCOMPOSE_DATA?}/media/movies/
tv:
name: tv
driver_opts:
type: none
o: bind
device: ${NASCOMPOSE_DATA?}/media/tv/
plex_transcode:
plex_config:
driver_opts:
type: none
o: bind
device: ${NASCOMPOSE_SERVICES?}/volumes/plex/config/

View File

@@ -1,93 +0,0 @@
name: Collectors
services:
plex:
image: plexinc/pms-docker:plexpass
environment:
PLEX_UID: ${NASCOMPOSE_UID?}
PLEX_GID: ${NASCOMPOSE_GID?}
networks:
- default
- traefik
volumes:
- plex_transcode:/transcode/
- plex_config:/config/
- tv:/data/tv/
- movies:/data/movies/
restart: unless-stopped
labels:
traefik.enable: true
traefik.http.services.plex.loadbalancer.server.port: 32400
traefik.http.services.plex.loadbalancer.server.scheme: https
plaxt:
image: xanderstrike/goplaxt
profiles: [plaxt]
user: ${NASCOMPOSE_UID?}:${NASCOMPOSE_GID?}
environment:
TRAKT_ID_FILE: /run/secrets/trakt_id
TRAKT_SECRET_FILE: /run/secrets/trakt_secret
networks:
- default
- traefik
volumes:
- plaxt_keystore:/app/keystore/
secrets:
- trakt_id
- trakt_secret
restart: unless-stopped
labels:
traefik.enable: true
traefik.http.routers.plaxt.middlewares: authelia@file
# TODO:
# Calibre-web
# Komga/Kavita
networks:
traefik:
external: true
volumes:
books:
name: books
driver_opts:
type: none
o: bind
device: ${NASCOMPOSE_DATA?}/media/books/
comics:
name: comics
driver_opts:
type: none
o: bind
device: ${NASCOMPOSE_DATA?}/media/comics/
movies:
name: movies
driver_opts:
type: none
o: bind
device: ${NASCOMPOSE_DATA?}/media/movies/
tv:
name: tv
driver_opts:
type: none
o: bind
device: ${NASCOMPOSE_DATA?}/media/tv/
plex_transcode:
plex_config:
driver_opts:
type: none
o: bind
device: ${NASCOMPOSE_SERVICES?}/volumes/plex/config/
plaxt_keystore:
driver_opts:
type: none
o: bind
device: ${NASCOMPOSE_SERVICES?}/volumes/plaxt/keystore/
secrets:
trakt_id:
file: ${NASCOMPOSE_SERVICES?}/secrets/plaxt/trakt_id
trakt_secret:
file: ${NASCOMPOSE_SERVICES?}/secrets/plaxt/trakt_secret

View File

@@ -0,0 +1,41 @@
name: Scrobbler
services:
plaxt:
image: xanderstrike/goplaxt
profiles: [plaxt]
user: ${NASCOMPOSE_UID?}:${NASCOMPOSE_GID?}
environment:
TRAKT_ID_FILE: /run/secrets/trakt_id
TRAKT_SECRET_FILE: /run/secrets/trakt_secret
networks:
- traefik
- media-player
volumes:
- plaxt_keystore:/app/keystore/
secrets:
- trakt_id
- trakt_secret
restart: unless-stopped
labels:
traefik.enable: true
traefik.http.routers.plaxt.middlewares: authelia@file
networks:
traefik:
external: true
media-player:
external: true
volumes:
plaxt_keystore:
driver_opts:
type: none
o: bind
device: ${NASCOMPOSE_SERVICES?}/scrobbler/volumes/plaxt_keystore/
secrets:
trakt_id:
file: ${NASCOMPOSE_SERVICES?}/scrobbler/secrets/trakt_id
trakt_secret:
file: ${NASCOMPOSE_SERVICES?}/scrobbler/secrets/trakt_secret