-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
31 lines (31 loc) · 1.06 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
# ------------------------------------------------------------------------------
services:
app:
ports:
- "${PDNS_LISTEN}:53"
- "${PDNS_LISTEN}:53/udp"
hostname: ${APP_TAG}
labels:
- traefik.http.services.${APP_TAG}.loadbalancer.server.port=8081
- traefik.http.middlewares.${APP_TAG}-prefix.stripprefix.prefixes=/pdns
- traefik.http.routers.${APP_TAG}.rule=Host(`${APP_SITE}`) && PathPrefix(`/pdns/`)
- traefik.http.routers.${APP_TAG}.middlewares=${APP_TAG}-prefix@docker
environment:
- PDNS_API_KEY
- PDNS_LOG_DNS_QUERIES
- PDNS_LOGLEVEL
- PDNS_API=yes
- PDNS_CHROOT=/
- PDNS_DAEMON=no
- PDNS_GPGSQL_DBNAME=${PGDATABASE}
- PDNS_GPGSQL_HOST=db
- PDNS_GPGSQL_PASSWORD=${PGPASSWORD}
- PDNS_GPGSQL_PORT=5432
- PDNS_GPGSQL_USER=${PGUSER}
- 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