-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.inc.yml
39 lines (39 loc) · 1.25 KB
/
docker-compose.inc.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
# ------------------------------------------------------------------------------
ns:
extends:
file: ${DCAPE_ROOT}/docker-compose.dcape.yml
service: template-traefik
image: ${PDNS_IMAGE}:${PDNS_VER}
ports:
- "${PDNS_LISTEN}:53"
- "${PDNS_LISTEN}:53/udp"
hostname: ${ACME_NS}
depends_on:
db:
condition: service_healthy
labels:
- "traefik.http.routers.powerdns.rule=Host(`${PDNS_HOST}`)"
- "traefik.http.services.powerdns.loadbalancer.server.port=8081"
- "traefik.http.routers.powerdns.middlewares=narra"
- "prometheus.io/scrape=true"
- "prometheus.io/port=8081"
- "prometheus.io/extra-labels=job:powerdns"
environment:
- PDNS_API_KEY
- PDNS_LOG_DNS_QUERIES
- PDNS_LOGLEVEL
- PDNS_API=yes
- PDNS_CHROOT=/
- PDNS_DAEMON=no
- PDNS_GPGSQL_DBNAME=${PDNS_DB_TAG}
- PDNS_GPGSQL_HOST=db
- PDNS_GPGSQL_PASSWORD=${PDNS_DB_PASS}
- PDNS_GPGSQL_PORT=5432
- PDNS_GPGSQL_USER=${PDNS_DB_TAG}
- PDNS_LAUNCH=gpgsql,bind
# - PDNS_MASTER=yes
- PDNS_SOCKET_DIR=/var/run
- PDNS_WEBSERVER_ADDRESS=0.0.0.0
- PDNS_WEBSERVER_ALLOW_FROM=0.0.0.0/0
- PDNS_WEBSERVER_PORT=8081
- PDNS_WEBSERVER=yes