15 lines
451 B
YAML
15 lines
451 B
YAML
version: '3.6'
|
|
|
|
services:
|
|
pdns-recursor:
|
|
build:
|
|
args:
|
|
- DOCKER_BUILD_DIR=docker/pdns-server
|
|
context: ../../..
|
|
dockerfile: docker/pdns-server/Dockerfile
|
|
command: /usr/local/sbin/pdns_recursor --local-address='192.168.0.1:53' --allow-from='127.0.0.0/8, 192.168.1.0/24, 172.16.0.0/12'
|
|
image: ${DOCKER_REPOSITORY}/pdns-recursor:${DOCKER_IMAGE_TAG}
|
|
hostname: ${HOSTNAME}
|
|
network_mode: host
|
|
restart: always
|