initial docker setup

This commit is contained in:
debian
2024-02-15 15:45:14 +01:00
commit 4606d1e95b
22 changed files with 661 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
services:
watchtower:
extends:
file: ${TEMPLATES_PATH}
service: default
image: containrrr/watchtower:latest
container_name: watchtower
environment:
- WATCHTOWER_CLEANUP=true
- WATCHTOWER_POLL_INTERVAL=43200 # 12h
- WATCHTOWER_INCLUDE_RESTARTING=true
- WATCHTOWER_LABEL_ENABLE=true
- WATCHTOWER_HTTP_API_METRICS=true
- WATCHTOWER_HTTP_API_TOKEN=mytoken
- WATCHTOWER_HTTP_API_UPDATE=true
- WATCHTOWER_HTTP_API_PERIODIC_POLLS=true
ports:
- 7999:8080
volumes:
# - ${INFRA_PATH}/watchtower/config:/config.json
- /var/run/docker.sock:/var/run/docker.sock
labels:
# Watchtower
- "com.centurylinklabs.watchtower.enable=true"