feat(bind): run command to specify ipv4, config file and log file

!17
This commit is contained in:
2024-03-19 17:35:31 +09:30
parent 01c9be4aeb
commit 569fc2528c
3 changed files with 8 additions and 5 deletions

View File

@ -11,7 +11,11 @@ RUN \
apk upgrade --no-cache; \ apk upgrade --no-cache; \
apk add --no-cache \ apk add --no-cache \
bind==${VERSION_BIND} \ bind==${VERSION_BIND} \
supervisor; supervisor; \
rm -f \
/etc/bind/named.conf.authoritative \
/etc/bind/named.conf.recursive \
/etc/bind/rndc.key;
EXPOSE \ EXPOSE \
@ -33,3 +37,4 @@ RUN \
CMD [ "/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf" ] CMD [ "/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf" ]
# CMD ["named", "-c", "/etc/bind/named.conf", "-g", "-u", "named"]

View File

@ -6,9 +6,7 @@ options {
listen-on { 127.0.0.1; }; listen-on { 127.0.0.1; };
listen-on-v6 { none; }; listen-on-v6 { none; };
allow-transfer { allow-transfer { none; };
none;
};
pid-file "/var/run/named/named.pid"; pid-file "/var/run/named/named.pid";

View File

@ -1,7 +1,7 @@
[program:bind] [program:bind]
startsecs=0 startsecs=0
stopwaitsecs=55 stopwaitsecs=55
command=/usr/sbin/named -f command=/usr/sbin/named -4 -f -c /etc/bind/named.conf -L /var/log/named.log
autorestart=true autorestart=true
autostart=true autostart=true
stdout_logfile=/var/log/supervisor_%(program_name)s.log stdout_logfile=/var/log/supervisor_%(program_name)s.log