-
Notifications
You must be signed in to change notification settings - Fork 42
/
traefik.yml
61 lines (61 loc) · 1.27 KB
/
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:
image: ryansch/unifi-rpi:latest
container_name: unifi
restart: always
ports:
- "3478:3478/udp"
- "8080:8080"
- "8443"
- "8880:8880"
- "8843"
- "6789:6789"
networks:
- unifi
volumes:
# Unifi v5.0.7 creates all of these directories (some remain empty)
- config:/var/lib/unifi
- log:/usr/lib/unifi/logs
- log2:/var/log/unifi
- run:/usr/lib/unifi/run
- run2:/run/unifi
- work:/usr/lib/unifi/work
labels:
- "traefik.enable=true"
- "traefik.docker.network=unifi"
- "traefik.controller.frontend.rule=Host:CHANGEME"
- "traefik.controller.port=8443"
- "traefik.controller.protocol=https"
traefik:
image: traefik:1.6
container_name: traefik
restart: always
ports:
- "80:80"
# - "443:443"
- "8443:8443"
# - "8843:8843"
- "4443:4443"
networks:
- unifi
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./traefik.toml:/traefik.toml
- ./acme.json:/acme.json
volumes:
config:
driver: local
log:
driver: local
log2:
driver: local
run:
driver: local
run2:
driver: local
work:
driver: local
networks:
unifi:
name: unifi