forked from anandslab/AtoMiC-ToolKit-Docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-unifi-traefik.yml
61 lines (59 loc) · 1.32 KB
/
docker-compose-unifi-traefik.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
version: "3.6"
services:
unifi:
hostname: unifi
image: linuxserver/unifi:latest
restart: always
container_name: "unifi"
volumes:
- ${USERDIR}/docker/unifi:/config
- ${USERDIR}/docker/shared:/shared
ports:
- target: 3478
published: 3478
protocol: udp
mode: host
- target: 10001
published: 10001
protocol: udp
mode: host
- target: 8080
published: 8080
protocol: tcp
mode: host
- target: 8081
published: 8081
protocol: tcp
mode: host
- target: 8443
published: 8443
protocol: tcp
mode: host
- target: 8880
published: 8880
protocol: tcp
mode: host
- target: 6789
published: 6789
protocol: tcp
mode: host
networks:
- traefik_proxy
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
labels:
- "traefik.enable=true"
- "traefik.tags=frontend"
- "traefik.frontend.passHostHeader=true"
- "traefik.admin.backend=unifi"
- "traefik.admin.frontend.rule=Host:unifi.${DOMAINNAME}"
- "traefik.admin.port=8443"
- "traefik.admin.protocol=https"
networks:
traefik_proxy:
external:
name: traefik_proxy
default:
driver: bridge