Bxl-swarm mediaserver
This commit is contained in:
parent
07d2419306
commit
779ce8cd06
|
@ -0,0 +1,32 @@
|
||||||
|
version: '3.7'
|
||||||
|
services:
|
||||||
|
jellyfin:
|
||||||
|
image: linuxserver/jellyfin:latest
|
||||||
|
volumes:
|
||||||
|
- /mnt/nfs/jellyfin:/config
|
||||||
|
- /mnt/movies/series:/data/tvshows
|
||||||
|
- /mnt/movies/movies:/data/movies
|
||||||
|
- /mnt/movies/musics:/data/musics
|
||||||
|
environment:
|
||||||
|
- TZ=Europe/Paris
|
||||||
|
networks:
|
||||||
|
- external
|
||||||
|
deploy:
|
||||||
|
mode: replicated
|
||||||
|
replicas: 1
|
||||||
|
restart_policy:
|
||||||
|
condition: on-failure
|
||||||
|
max_attempts: 3
|
||||||
|
placement:
|
||||||
|
constraints: [node.labels.HWA == true]
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.http.routers.jellyfin.rule=Host(`jellyfin.bhasher.com`)"
|
||||||
|
- "traefik.http.routers.jellyfin.entrypoints=internalsecure,externalsecure"
|
||||||
|
- "traefik.http.services.jellyfin.loadbalancer.server.port=8096"
|
||||||
|
- "traefik.http.routers.jellyfin.tls=true"
|
||||||
|
- "traefik.http.routers.jellyfin.tls.certresolver=http"
|
||||||
|
|
||||||
|
networks:
|
||||||
|
external:
|
||||||
|
external: true
|
|
@ -7,8 +7,6 @@ services:
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
networks:
|
networks:
|
||||||
- external
|
- external
|
||||||
ports:
|
|
||||||
- 5683:5683
|
|
||||||
deploy:
|
deploy:
|
||||||
mode: replicated
|
mode: replicated
|
||||||
replicas: 1
|
replicas: 1
|
||||||
|
@ -23,6 +21,23 @@ services:
|
||||||
- "traefik.http.routers.hass.tls=true"
|
- "traefik.http.routers.hass.tls=true"
|
||||||
- "traefik.http.routers.hass.tls.certresolver=http"
|
- "traefik.http.routers.hass.tls.certresolver=http"
|
||||||
|
|
||||||
|
mosquitto:
|
||||||
|
image: eclipse-mosquitto:latest
|
||||||
|
volumes:
|
||||||
|
- /mnt/nfs/mosquitto/config:/mosquitto/config
|
||||||
|
- /mnt/nfs/mosquitto/data:/mosquitto/data
|
||||||
|
ports:
|
||||||
|
- 1883:1883
|
||||||
|
- 9001:9001
|
||||||
|
networks:
|
||||||
|
- external
|
||||||
|
deploy:
|
||||||
|
mode: replicated
|
||||||
|
replicas: 1
|
||||||
|
restart_policy:
|
||||||
|
condition: any
|
||||||
|
max_attempts: 3
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
external:
|
external:
|
||||||
external: true
|
external: true
|
||||||
|
|
Loading…
Reference in New Issue