Restructered repository and added dockerfiles.

This commit is contained in:
Luc Bijl 2023-09-30 17:21:33 +02:00
parent 6f626ea686
commit 25dde6a119
8 changed files with 86 additions and 22 deletions

34
docker-compose/base.yaml Normal file
View file

@ -0,0 +1,34 @@
version: '3.0'
services:
portainer:
container_name: portainer
image: portainer/portainer-ce:alpine
network_mode: bridge
ports:
- "9000:9000/tcp"
volumes:
- /etc/localtime/:/etc/localtime:ro
- /var/run/docker.sock:/var/run/docker.sock
- ~/docker/portainer:/data
restart: always
watchtower:
container_name: watchtower
image: containrrr/watchtower:latest
network_mode: bridge
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/var/run/docker.sock
environment:
WATCHTOWER_NOTIFICATION_EMAIL_FROM = info@{domain}
WATCHTOWER_NOTIFICATION_EMAIL_TO=user@{domain}
WATCHTOWER_NOTIFICATION_EMAIL_SERVER=mail.{domain}
WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT=465
WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER=info
WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD={passwd}
WATCHTOWER_NOTIFICATION_EMAIL_DELAY=2
WATCHTOWER_NOTIFICATIONS=email
WATCHTOWER_SCHEDULE=0 0 0 * * 6
WATCHTOWER_CLEANUP=true
restart: unless-stopped