-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcompose.yml
More file actions
78 lines (69 loc) · 1.71 KB
/
Copy pathcompose.yml
File metadata and controls
78 lines (69 loc) · 1.71 KB
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
73
74
75
76
77
78
services:
zerotier-app:
image: docker.io/nfrastack/zerotier
container_name: zerotier-app
labels:
- traefik.enable=true
- traefik.http.routers.zerotier-app.rule=Host(`zerotier.example.com`)
- traefik.http.services.zerotier-app.loadbalancer.server.port=80
ports:
- 9993:9993/udp
cap_add:
- NET_ADMIN
- SYS_ADMIN
volumes:
- ./data:/data
- ./logs:/logs
environment:
- TIMEZONE=America/Vancouver
- MODE=CONTROLLER,UI
- CONTROLLER_LISTEN_PORT=9993
- UI_DB_HOST=zerotier-db
- UI_DB_PORT=5432
- UI_DB_NAME=zerotier
- UI_DB_USER=zerotier
- UI_DB_PASS=zerotier
- UI_SITE_URL=https://zerotier.example.com
networks:
- proxy
- services
restart: always
zerotier-db:
image: docker.io/nfrastack/postgres:18
container_name: zerotier-db
volumes:
- ./logs:/logs
- ./db:/data
environment:
- TIMEZONE=America/Vancouver
- SUPERUSER_PASS=password
- DB_NAME=zerotier
- DB_USER=zerotier
- DB_PASS=zerotier
networks:
- services
restart: always
zerotier-db-backup:
image: docker.io/tiredofit/db-backup:latest
container_name: zerotier-db-backup
volumes:
- ./dbbackup:/backup
environment:
- TIMEZONE=America/Vancouver
- CONTAINER_NAME=zerotier-db-backup
- DB01_HOST=zerotier-db
- DB01_TYPE=postgres
- DB01_NAME=zerotier
- DB01_USER=zerotier
- DB01_PASS=zerotier
- DB01_BACKUP_INTERVAL=1440
- DB01_BACKUP_BEGIN=0000
- DB01_CLEANUP_TIME=8640
networks:
- services
restart: always
networks:
proxy:
external: true
services:
external: true