Media Server, Pt 8

This commit is contained in:
Andreas S. Turriff 2024-06-23 11:12:28 -07:00
parent 51c80a4e2c
commit cac48b49a1
2 changed files with 36 additions and 0 deletions

31
mylar3.yaml Normal file
View File

@ -0,0 +1,31 @@
mylar3:
deploy:
labels:
traefik.enable: "true"
traefik.http.routers.mylar3-rtr.entrypoints: "websecure"
traefik.http.routers.mylar3-rtr.middlewares: "authentik@swarm"
traefik.http.routers.mylar3-rtr.rule: "Host(`mylar3.your.domain`)"
traefik.http.routers.mylar3-rtr.service: "mylar3"
traefik.http.services.mylar3.loadbalancer.server.port: "8090"
replicas: 1
environment:
PUID: 10019
PGID: 10002
UMASK: 0002
TZ: "Etc/UTC"
healthcheck:
test: "curl -f http://mylar3:8090"
interval: 2m
timeout: 5s
start_period: 20s
hostname: "mylar3"
image: "linuxserver/mylar3"
networks:
- homelab
restart: on-failure
volumes:
- "/srv/data/docker/mylar3/config:/config"
- "/srv/data/shared/usenet:/data/usenet"
- "/srv/data/shared/torrent:/data/torrent"
- "/srv/data/shared/media:/data/media"
- "/srv/data/docker/mylar3/custom-cont-init.d:/custom-cont-init.d"

View File

@ -0,0 +1,5 @@
#!/bin/bash
export LOCAL_IP=$(ip addr | grep -E 'inet 10\.64\..*/16' | sed -e 's|.*\(10\.64\..*\..*\)/16.*|\1|')
sed -i -e "/http_host/s| = .*\..*\..*\..*| = ${LOCAL_IP}|" /config/mylar/config.ini