Skip to content

Commit ee35f5e

Browse files
authored
Create docker-compose.yml (#58)
Building a homelab one-step at a time. Docker-compose file based on https://github.com/key-networks/ztncui-aio .
1 parent 21ed997 commit ee35f5e

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
version: "3"
2+
3+
services:
4+
ztncui:
5+
image: keynetworks/ztncui
6+
volumes:
7+
- ./ztncui:/opt/key-networks/ztncui/etc
8+
- ./zt1:/var/lib/zerotier-one
9+
environment:
10+
- NODE_ENV=production
11+
- HTTP_PORT=3000
12+
- ZTNCUI_PASSWD=password
13+
- MYDOMAIN=URL_FOR_TLS_CERT
14+
- HTTP_ALL_INTERFACES=yes
15+
- MYADDR=YOUR_PUBLIC_IP
16+
networks:
17+
- proxy
18+
labels:
19+
- "traefik.enable=true"
20+
- "traefik.http.routers.ztncui.entrypoints=http"
21+
- "traefik.http.routers.ztncui.rule=Host(`zerotier.local.example.com`)"
22+
- "traefik.http.middlewares.ztncui-https-redirect.redirectscheme.scheme=https"
23+
- "traefik.http.routers.ztncui.middlewares=ztncui-https-redirect"
24+
- "traefik.http.routers.ztncui-secure.entrypoints=https"
25+
- "traefik.http.routers.ztncui-secure.rule=Host(`zerotier.local.example.com`)"
26+
- "traefik.http.routers.ztncui-secure.tls=true"
27+
- "traefik.http.routers.ztncui-secure.service=ztncui"
28+
- "traefik.http.services.ztncui.loadbalancer.server.port=3000"
29+
- "traefik.docker.network=proxy"
30+
31+
networks:
32+
proxy:
33+
external: true

0 commit comments

Comments
 (0)