-
Notifications
You must be signed in to change notification settings - Fork 0
/
misc.yml
72 lines (68 loc) · 2.02 KB
/
misc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: "3.3"
services:
# A process for automating Docker container base image updates.
watchtower:
image: containrrr/watchtower
container_name: watchtower
network_mode: host
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ${HOME}/.docker/config.json:/config.json
command: --label-enable --cleanup --schedule "0 0 4 * * *"
restart: unless-stopped
# Web interface to view/manage docker
portainer:
image: portainer/portainer-ce
container_name: portainer
networks:
- web
ports:
- 9000:9000
- 8000:8000
labels:
- com.centurylinklabs.watchtower.enable=true
- traefik.enable=true
- traefik.http.routers.portainer.entrypoints=https
- traefik.http.services.portainer.loadbalancer.server.port=9000
- traefik.http.routers.portainer.middlewares=internalwhitelist@docker
restart: always
command: -H unix:///var/run/docker.sock
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ${CONTAINERS}/portainer:/data
portainer_agent:
image: portainer/agent
container_name: portainer-agent
networks:
- web
ports:
- 9001:9001
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/docker/volumes:/var/lib/docker/volumes
restart: always
labels:
- com.centurylinklabs.watchtower.enable=true
- traefik.enable=false
# Backup software to store encrypted backups online
duplicati:
image: lscr.io/linuxserver/duplicati:latest
container_name: duplicati
networks:
- web
ports:
- 8200:8200
labels:
- com.centurylinklabs.duplicati.enable=true
- traefik.enable=true
- traefik.http.routers.duplicati.entrypoints=https
- traefik.http.routers.duplicati.middlewares=internalwhitelist@docker
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TIMEZONE}
volumes:
- ${CONTAINERS}/duplicati/config:/config
- ${BACKUPS}/duplicati:/backups
- /:/source
restart: unless-stopped