Media Server, Pt 8
This commit is contained in:
parent
51c80a4e2c
commit
cac48b49a1
31
mylar3.yaml
Normal file
31
mylar3.yaml
Normal 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"
|
5
scripts/mylar3/custom-cont-init.d/mylar3-listen.sh
Executable file
5
scripts/mylar3/custom-cont-init.d/mylar3-listen.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user