File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
reference_files/traefik-portainer-ssl/ztncui Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments