zero-ui/docker-compose.yml

48 lines
1.1 KiB
YAML
Raw Normal View History

version: "3"
2021-03-22 03:25:13 +08:00
services:
zerotier:
2023-09-12 10:19:41 +08:00
image: zyclonite/zerotier:1.10.6
2021-03-22 03:25:13 +08:00
container_name: zu-controller
restart: unless-stopped
volumes:
2022-09-05 21:24:59 +08:00
- ./zerotier-one:/var/lib/zerotier-one
environment:
- ZT_OVERRIDE_LOCAL_CONF=true
- ZT_ALLOW_MANAGEMENT_FROM=0.0.0.0/0
2021-03-22 03:25:13 +08:00
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:
2022-09-05 21:24:59 +08:00
- ./zerotier-one:/var/lib/zerotier-one
- ./data:/app/backend/data
2021-03-22 03:25:13 +08:00
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
2021-03-22 03:25:13 +08:00
volumes:
2022-09-05 21:53:39 +08:00
- ./caddy:/data/caddy
2021-03-22 03:25:13 +08:00
ports:
- "80:80"
- "443:443"