forked from krzkowalczyk/operadns-ui-docker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
61 lines (57 loc) · 1.48 KB
/
docker-compose.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.2"
services:
pdns-server:
image: psitrax/powerdns
ports:
- target: 53
published: 53
protocol: tcp
mode: host
- target: 53
published: 53
protocol: udp
mode: host
command: --master=yes --slave=no --api=yes --api-key="${PDNS_API_KEY}" --local-address=0.0.0.0 --webserver-address=0.0.0.0 --webserver-allow-from=0.0.0.0/0 --disable-axfr=no --allow-axfr-ips="${PDNS_AXFR_IPS}" --also-notify="${PDNS_AXFR_IPS}"
environment:
- MYSQL_HOST=pdns-mysql
- MYSQL_DB=pdns
- MYSQL_USER=pdns
- MYSQL_PASS=password
- PDNS_API_KEY=${PDNS_API_KEY}
- PDNS_AXFR_IPS=${PDNS_AXFR_IPS}
links:
- pdns-mysql
pdns-mysql:
image: mysql:5.7
environment:
- MYSQL_DATABASE=pdns
- MYSQL_USER=pdns
- MYSQL_PASSWORD=password
- MYSQL_ROOT_PASSWORD=password
volumes:
- ./data/powerdns-db:/var/lib/mysql
dns-ui:
build: .
ports:
- 8888:80/tcp
links:
- dns-ui-db
environment:
- ADMIN_USER=admin
- ADMIN_PASSWORD=password
- POSTGRES_HOST=dns-ui-db
- POSTGRES_DB=pdns
- POSTGRES_USER=pdns
- POSTGRES_PASSWORD=password
- PDNS_API_HOST=pdns-server
- PDNS_API_KEY=${PDNS_API_KEY}
volumes:
- ./data:/data
dns-ui-db:
image: postgres
environment:
- POSTGRES_DB=pdns
- POSTGRES_USER=pdns
- POSTGRES_PASSWORD=password
volumes:
- ./data/dns-ui-db:/var/lib/postgresql/data