-
Notifications
You must be signed in to change notification settings - Fork 152
/
docker-compose.yml
47 lines (46 loc) · 1.12 KB
/
docker-compose.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
version: "3"
services:
zerotier:
image: zyclonite/zerotier:1.10.6
container_name: zu-controller
restart: unless-stopped
volumes:
- ./zerotier-one:/var/lib/zerotier-one
environment:
- ZT_OVERRIDE_LOCAL_CONF=true
- ZT_ALLOW_MANAGEMENT_FROM=0.0.0.0/0
expose:
- "9993/tcp"
ports:
- "9993:9993/udp"
zero-ui:
image: dec0dos/zero-ui:latest
container_name: zu-main
build:
context: .
dockerfile: ./docker/zero-ui/Dockerfile
restart: unless-stopped
depends_on:
- zerotier
volumes:
- ./zerotier-one:/var/lib/zerotier-one
- ./data:/app/backend/data
environment:
- ZU_CONTROLLER_ENDPOINT=http://zerotier:9993/
- ZU_SECURE_HEADERS=true
- ZU_DEFAULT_USERNAME=admin
- ZU_DEFAULT_PASSWORD=zero-ui
expose:
- "4000"
https-proxy:
image: caddy:latest
container_name: zu-https-proxy
restart: unless-stopped
depends_on:
- zero-ui
command: caddy reverse-proxy --from YOURDOMAIN.com --to zero-ui:4000
volumes:
- ./caddy:/data/caddy
ports:
- "80:80"
- "443:443"