feat: always restart containers to persist on reboot
This commit is contained in:
parent
b4e6bd2c49
commit
b3850d7492
@ -3,6 +3,7 @@ services:
|
|||||||
traefik:
|
traefik:
|
||||||
image: traefik:v2.6
|
image: traefik:v2.6
|
||||||
container_name: traefik
|
container_name: traefik
|
||||||
|
restart: always
|
||||||
command:
|
command:
|
||||||
- --providers.docker=true
|
- --providers.docker=true
|
||||||
- --providers.docker.exposedbydefault=false
|
- --providers.docker.exposedbydefault=false
|
||||||
@ -25,7 +26,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./sonarr:/config
|
- ./sonarr:/config
|
||||||
- ${DATA_ROOT}:/data
|
- ${DATA_ROOT}:/data
|
||||||
restart: unless-stopped
|
restart: always
|
||||||
labels:
|
labels:
|
||||||
- traefik.enable=true
|
- traefik.enable=true
|
||||||
- traefik.http.routers.sonarr.rule=PathPrefix(`/sonarr`)
|
- traefik.http.routers.sonarr.rule=PathPrefix(`/sonarr`)
|
||||||
@ -40,7 +41,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./radarr:/config
|
- ./radarr:/config
|
||||||
- ${DATA_ROOT}:/data
|
- ${DATA_ROOT}:/data
|
||||||
restart: unless-stopped
|
restart: always
|
||||||
labels:
|
labels:
|
||||||
- traefik.enable=true
|
- traefik.enable=true
|
||||||
- traefik.http.routers.radarr.rule=PathPrefix(`/radarr`)
|
- traefik.http.routers.radarr.rule=PathPrefix(`/radarr`)
|
||||||
@ -54,7 +55,7 @@ services:
|
|||||||
- PGID=${GROUP_ID}
|
- PGID=${GROUP_ID}
|
||||||
volumes:
|
volumes:
|
||||||
- ./prowlarr:/config
|
- ./prowlarr:/config
|
||||||
restart: unless-stopped
|
restart: always
|
||||||
labels:
|
labels:
|
||||||
- traefik.enable=true
|
- traefik.enable=true
|
||||||
- traefik.http.routers.prowlarr.rule=PathPrefix(`/prowlarr`)
|
- traefik.http.routers.prowlarr.rule=PathPrefix(`/prowlarr`)
|
||||||
@ -71,7 +72,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./qbittorrent:/config
|
- ./qbittorrent:/config
|
||||||
- ${DOWNLOAD_ROOT}:/data/torrents
|
- ${DOWNLOAD_ROOT}:/data/torrents
|
||||||
restart: unless-stopped
|
restart: always
|
||||||
network_mode: "service:vpn"
|
network_mode: "service:vpn"
|
||||||
depends_on:
|
depends_on:
|
||||||
- vpn
|
- vpn
|
||||||
@ -87,7 +88,7 @@ services:
|
|||||||
- traefik.http.middlewares.qbittorrent-strip-slash.redirectregex.regex=(^.*\/qbittorrent$$)
|
- traefik.http.middlewares.qbittorrent-strip-slash.redirectregex.regex=(^.*\/qbittorrent$$)
|
||||||
- traefik.http.middlewares.qbittorrent-strip-slash.redirectregex.replacement=$$1/
|
- traefik.http.middlewares.qbittorrent-strip-slash.redirectregex.replacement=$$1/
|
||||||
- traefik.http.middlewares.qbittorrent-strip-slash.redirectregex.permanent=false
|
- traefik.http.middlewares.qbittorrent-strip-slash.redirectregex.permanent=false
|
||||||
#- com.centurylinklabs.watchtower.depends-on="/vpn"
|
#- com.centurylinklabs.watchtower.depends-on=/vpn
|
||||||
vpn:
|
vpn:
|
||||||
image: thrnz/docker-wireguard-pia
|
image: thrnz/docker-wireguard-pia
|
||||||
container_name: vpn
|
container_name: vpn
|
||||||
@ -114,7 +115,7 @@ services:
|
|||||||
interval: 30s
|
interval: 30s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 3
|
retries: 3
|
||||||
restart: unless-stopped
|
restart: always
|
||||||
labels:
|
labels:
|
||||||
# network mode is not supported: https://github.com/containrrr/watchtower/issues/1286#issuecomment-1214291660
|
# network mode is not supported: https://github.com/containrrr/watchtower/issues/1286#issuecomment-1214291660
|
||||||
- com.centurylinklabs.watchtower.enable=false
|
- com.centurylinklabs.watchtower.enable=false
|
||||||
@ -126,7 +127,7 @@ services:
|
|||||||
- PGID=${GROUP_ID}
|
- PGID=${GROUP_ID}
|
||||||
volumes:
|
volumes:
|
||||||
- ./heimdall:/config
|
- ./heimdall:/config
|
||||||
restart: unless-stopped
|
restart: always
|
||||||
labels:
|
labels:
|
||||||
- traefik.enable=true
|
- traefik.enable=true
|
||||||
- traefik.http.routers.heimdall.rule=PathPrefix(`/`)
|
- traefik.http.routers.heimdall.rule=PathPrefix(`/`)
|
||||||
@ -135,6 +136,7 @@ services:
|
|||||||
watchtower:
|
watchtower:
|
||||||
image: containrrr/watchtower
|
image: containrrr/watchtower
|
||||||
container_name: watchtower
|
container_name: watchtower
|
||||||
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
- WATCHTOWER_CLEANUP=true
|
- WATCHTOWER_CLEANUP=true
|
||||||
volumes:
|
volumes:
|
||||||
|
Loading…
Reference in New Issue
Block a user