mirror of
https://github.com/ImranR98/selfhostingfromscratch.git
synced 2026-04-24 06:38:36 -04:00
Use Watchtower for auto-updates
This commit is contained in:
@@ -1,5 +1,18 @@
|
|||||||
services:
|
services:
|
||||||
|
|
||||||
|
watchtower: # https://github.com/containrrr/watchtower
|
||||||
|
container_name: watchtower
|
||||||
|
privileged: true
|
||||||
|
restart: unless-stopped
|
||||||
|
image: containrrr/watchtower
|
||||||
|
environment:
|
||||||
|
WATCHTOWER_CLEANUP: "true"
|
||||||
|
WATCHTOWER_POLL_INTERVAL: 7200
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
# OUTDATED: https://github.com/containrrr/watchtower/issues/2067
|
||||||
|
# POSSIBLE ALTERNATIVE: https://github.com/mag37/dockcheck
|
||||||
|
|
||||||
frpc: # https://github.com/fatedier/frp
|
frpc: # https://github.com/fatedier/frp
|
||||||
image: fatedier/frpc:v0.65.0
|
image: fatedier/frpc:v0.65.0
|
||||||
container_name: frpc
|
container_name: frpc
|
||||||
@@ -7,6 +20,8 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./frpc.toml:/frpc.toml
|
- ./frpc.toml:/frpc.toml
|
||||||
network_mode: host
|
network_mode: host
|
||||||
|
labels:
|
||||||
|
- "com.centurylinklabs.watchtower.enable=false"
|
||||||
command: "-c /frpc.toml"
|
command: "-c /frpc.toml"
|
||||||
|
|
||||||
traefik: # https://github.com/traefik/traefik
|
traefik: # https://github.com/traefik/traefik
|
||||||
|
|||||||
Reference in New Issue
Block a user