This commit is contained in:
Kameron Kenny - pi501 2024-05-15 23:50:58 -04:00
parent 9a35611b5f
commit f04ffb6232
3 changed files with 17 additions and 11 deletions

View File

@ -1,6 +1,6 @@
FROM ubuntu/bind9:9.18-22.04_beta
LABEL version="20240513.1.2"
LABEL version="20240513.1.3"
LABEL description="bind9 primary nameserver"
ENV BIND_LIB_DIR=/var/lib/bind
@ -13,6 +13,9 @@ RUN apt update && apt -y upgrade
COPY primary/etc/bind/named.conf $BIND_ETC_DIR/named.conf
COPY primary/var/lib/bind $BIND_LIB_DIR
RUN mkdir -p /var/named/log
RUN chown -R bind:bind /var/named/log
RUN chown -R bind:bind $BIND_ETC_DIR
RUN chown -R bind:bind $BIND_LIB_DIR
RUN chown -R bind:bind /var/cache/bind

View File

@ -1,6 +1,6 @@
FROM ubuntu/bind9:9.18-22.04_beta
LABEL version="20240515.1.2"
LABEL version="20240515.1.3"
LABEL description="bind9 secondary nameserver"
ENV BIND_LIB_DIR=/var/lib/bind
@ -11,6 +11,9 @@ ARG DEBIAN_FRONTEND=noninteractive
RUN apt update && apt -y upgrade
COPY secondary/etc/bind/named.conf $BIND_ETC_DIR/named.conf
RUN mkdir -p /var/named/log
RUN chown -R bind:bind /var/named/log
RUN chown -R bind:bind $BIND_ETC_DIR
RUN chown -R bind:bind $BIND_LIB_DIR
RUN chown -R bind:bind /var/cache/bind

View File

@ -1,7 +1,7 @@
---
volumes:
bind9_logs:
driver: local
#volumes:
# bind9_logs:
# driver: local
# bind9_cache:
# driver: local
# primary_var_lib_bind:
@ -18,14 +18,14 @@ services:
container_name: ns1
build:
dockerfile: Dockerfile.primary
image: docker-registry1.in.thelinuxpro.net:5000/tlp/bind9-primary:240515.4.5
image: docker-registry1.in.thelinuxpro.net:5000/tlp/bind9-primary:240515.4.7
restart: always
user: root
environment:
- TZ='America/Indianapolis'
- BIND9_USER=bind
volumes:
- bind9_logs:/var/named/log
#volumes:
#- bind9_logs:/var/named/log
#- primary_var_lib_bind:/var/lib/bind
#- ./primary/var/lib/bind:/var/lib/bind:rw
#- ./primary/etc/bind/named.conf:/etc/bind/named.conf
@ -41,14 +41,14 @@ services:
container_name: ns2
build:
dockerfile: Dockerfile.secondary
image: docker-registry1.in.thelinuxpro.net:5000/tlp/bind9-secondary:240515.4.5
image: docker-registry1.in.thelinuxpro.net:5000/tlp/bind9-secondary:240515.4.7
restart: always
user: root
environment:
- TZ='America/Indianapolis'
- BIND9_USER=bind
volumes:
- bind9_logs:/var/named/log
#volumes:
#- bind9_logs:/var/named/log
#- secondary_var_lib_bind:/var/lib/bind
#- ./secondary/var/lib/bind:/var/lib/bind:rw
#- ./secondary/etc/bind/named.conf:/etc/bind/named.conf:ro