-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathunifi.yml
63 lines (60 loc) · 1.89 KB
/
unifi.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
62
63
## This docker-compose file is designed to be used as a template in portainer.
## It is widely (completely) inspired from the funkypenguin's cookbook.
## Don't miss his webpage: https://geek-cookbook.funkypenguin.co.nz
##
##
## This template can be set up in your portainer "App template".
## Don't forget to set the following environment variables:
## - PUID => user id that can read/write the media files.
## - PGID => group id that can read/write the media files.
## - DOMAIN => your DNS domainname ( example.com )
version: "3.0"
services:
unifi:
image: linuxserver/unifi-controller:latest
volumes:
- /var/data/volumes/unifi:/config
deploy:
labels:
- traefik.tags=frontend
- traefik.frontend.passHostHeader=true
- traefik.admin.backend=unifi
- traefik.frontend.rule=Host:unifi.$DOMAIN
- traefik.docker.network=traefik_public
- traefik.admin.port=8443
- traefik.admin.protocol=https
- traefik.frontend.headers.SSLRedirect=true
- traefik.frontend.headers.STSSeconds=315360000
- traefik.frontend.headers.browserXSSFilter=true
- traefik.frontend.headers.contentTypeNosniff=true
- traefik.frontend.headers.forceSTSHeader=true
- traefik.frontend.headers.SSLHost=$DOMAIN
- traefik.frontend.headers.STSIncludeSubdomains=true
- traefik.frontend.headers.STSPreload=true
- traefik.frontend.headers.frameDeny=true
networks:
- traefik_public
- internal
ports:
- 3478:3478/udp
- 10001:10001/udp
- 8080:8080
- 8081:8081
- 8443:8443
- 8843:8843
- 8880:8880
- 6789:6789
environment:
- PGID=$PGID
- PUID=$PUID
- TZ=Europe/Paris
logging:
driver: json-file
networks:
traefik_public:
external: true
internal:
driver: overlay
ipam:
config:
- subnet: 172.16.7.0/24