forked from ac3d912/unifi-reverse-dns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-swarm.yaml
62 lines (59 loc) · 1.57 KB
/
docker-compose-swarm.yaml
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
version: '3.3'
services:
unifi-controller:
image: linuxserver/unifi-controller
container_name: unifi-controller
environment:
PUID: 1000
PGID: 1000
MEM_LIMIT: 1024M
volumes:
- unifi-data:/config
ports:
- 3478:3478/udp
- 10001:10001/udp
- 8080:8080
- 8081:8081
- 8443:8443
- 8843:8843
- 8880:8880
- 6789:6789
- 2223:22
networks:
- traefik-internal
restart: unless-stopped
deploy:
placement:
constraints:
- node.labels.unifi == true # Place a node label called unifi and set it to true, or remove this
labels:
traefik.docker.network: "traefik-internal"
traefik.enable: "true"
traefik.frontend.entryPoints: "https"
traefik.frontend.rule: "Host:unifi.company.tld"
traefik.port: 8443
traefik.protocol: "https"
traefik.serversTransport.insecureSkipVerify: "true" # Don't verify traefik->unifi cert
traefik.tags: "traefik-internal"
unifi-reverse-dns:
build:
context: .
dockerfile: Dockerfile
image: unifi-reverse-dns:latest # Change this to use your prefered registry
container_name: unifi-reverse-dns
env_file:
- defaults.env
environment:
- BASE_URL=https://unifi-controller:8443/
- PASSWORD__FILE=/run/secrets/unifi-password
- DAEMONIZE=3600 # Run once an hour
secrets:
- unifi-password
volumes:
unifi-data:
networks:
traefik-internal:
external: true
secrets:
unifi-password:
external: true