-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-test.yml
42 lines (40 loc) · 1.38 KB
/
docker-compose-test.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
services:
db:
build: pg-eatmydata
restart: "no"
ports:
- 5432:5432
environment:
- POSTGRES_DB=localcert-pdns
- POSTGRES_PASSWORD
- POSTGRES_USER
pdns:
build: pdns
restart: "no"
command: >
bash -c "export PGPASSWORD=${POSTGRES_PASSWORD} &&
sleep 2 &&
psql -h db -U ${POSTGRES_USER} -d ${LOCALCERT_PDNS_DB_NAME} -w -a -f /usr/share/doc/pdns-backend-pgsql/schema.pgsql.sql &&
pdnsutil create-zone corpnet.work &&
pdnsutil add-record corpnet.work @ NS 3600 ns1.getlocalcert.net &&
pdnsutil add-record corpnet.work @ NS 3600 ns2.getlocalcert.net &&
pdnsutil create-zone localcert.net &&
pdnsutil add-record localcert.net @ NS 3600 ns1.getlocalcert.net &&
pdnsutil add-record localcert.net @ NS 3600 ns2.getlocalcert.net &&
pdnsutil create-zone localhostcert.net &&
pdnsutil add-record localhostcert.net @ NS 3600 ns1.getlocalcert.net &&
pdnsutil add-record localhostcert.net @ NS 3600 ns2.getlocalcert.net &&
/usr/sbin/pdns_server"
ports:
- "8081:8081"
- "8053:53/udp"
environment:
- LOCALCERT_PDNS_DB_NAME
- LOCALCERT_PDNS_DEFAULT_SOA_CONTENT
- LOCALCERT_PDNS_HOST
- LOCALCERT_PDNS_WEBSERVER_ALLOW_FROM
- LOCALCERT_SHARED_PDNS_API_KEY
- POSTGRES_PASSWORD
- POSTGRES_USER
depends_on:
- db