finally.
This commit is contained in:
parent
9a35611b5f
commit
f04ffb6232
|
@ -1,6 +1,6 @@
|
||||||
FROM ubuntu/bind9:9.18-22.04_beta
|
FROM ubuntu/bind9:9.18-22.04_beta
|
||||||
|
|
||||||
LABEL version="20240513.1.2"
|
LABEL version="20240513.1.3"
|
||||||
LABEL description="bind9 primary nameserver"
|
LABEL description="bind9 primary nameserver"
|
||||||
|
|
||||||
ENV BIND_LIB_DIR=/var/lib/bind
|
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/etc/bind/named.conf $BIND_ETC_DIR/named.conf
|
||||||
COPY primary/var/lib/bind $BIND_LIB_DIR
|
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_ETC_DIR
|
||||||
RUN chown -R bind:bind $BIND_LIB_DIR
|
RUN chown -R bind:bind $BIND_LIB_DIR
|
||||||
RUN chown -R bind:bind /var/cache/bind
|
RUN chown -R bind:bind /var/cache/bind
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
FROM ubuntu/bind9:9.18-22.04_beta
|
FROM ubuntu/bind9:9.18-22.04_beta
|
||||||
|
|
||||||
LABEL version="20240515.1.2"
|
LABEL version="20240515.1.3"
|
||||||
LABEL description="bind9 secondary nameserver"
|
LABEL description="bind9 secondary nameserver"
|
||||||
|
|
||||||
ENV BIND_LIB_DIR=/var/lib/bind
|
ENV BIND_LIB_DIR=/var/lib/bind
|
||||||
|
@ -11,6 +11,9 @@ ARG DEBIAN_FRONTEND=noninteractive
|
||||||
RUN apt update && apt -y upgrade
|
RUN apt update && apt -y upgrade
|
||||||
|
|
||||||
COPY secondary/etc/bind/named.conf $BIND_ETC_DIR/named.conf
|
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_ETC_DIR
|
||||||
RUN chown -R bind:bind $BIND_LIB_DIR
|
RUN chown -R bind:bind $BIND_LIB_DIR
|
||||||
RUN chown -R bind:bind /var/cache/bind
|
RUN chown -R bind:bind /var/cache/bind
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
volumes:
|
#volumes:
|
||||||
bind9_logs:
|
# bind9_logs:
|
||||||
driver: local
|
# driver: local
|
||||||
# bind9_cache:
|
# bind9_cache:
|
||||||
# driver: local
|
# driver: local
|
||||||
# primary_var_lib_bind:
|
# primary_var_lib_bind:
|
||||||
|
@ -18,14 +18,14 @@ services:
|
||||||
container_name: ns1
|
container_name: ns1
|
||||||
build:
|
build:
|
||||||
dockerfile: Dockerfile.primary
|
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
|
restart: always
|
||||||
user: root
|
user: root
|
||||||
environment:
|
environment:
|
||||||
- TZ='America/Indianapolis'
|
- TZ='America/Indianapolis'
|
||||||
- BIND9_USER=bind
|
- BIND9_USER=bind
|
||||||
volumes:
|
#volumes:
|
||||||
- bind9_logs:/var/named/log
|
#- bind9_logs:/var/named/log
|
||||||
#- primary_var_lib_bind:/var/lib/bind
|
#- primary_var_lib_bind:/var/lib/bind
|
||||||
#- ./primary/var/lib/bind:/var/lib/bind:rw
|
#- ./primary/var/lib/bind:/var/lib/bind:rw
|
||||||
#- ./primary/etc/bind/named.conf:/etc/bind/named.conf
|
#- ./primary/etc/bind/named.conf:/etc/bind/named.conf
|
||||||
|
@ -41,14 +41,14 @@ services:
|
||||||
container_name: ns2
|
container_name: ns2
|
||||||
build:
|
build:
|
||||||
dockerfile: Dockerfile.secondary
|
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
|
restart: always
|
||||||
user: root
|
user: root
|
||||||
environment:
|
environment:
|
||||||
- TZ='America/Indianapolis'
|
- TZ='America/Indianapolis'
|
||||||
- BIND9_USER=bind
|
- BIND9_USER=bind
|
||||||
volumes:
|
#volumes:
|
||||||
- bind9_logs:/var/named/log
|
#- bind9_logs:/var/named/log
|
||||||
#- secondary_var_lib_bind:/var/lib/bind
|
#- secondary_var_lib_bind:/var/lib/bind
|
||||||
#- ./secondary/var/lib/bind:/var/lib/bind:rw
|
#- ./secondary/var/lib/bind:/var/lib/bind:rw
|
||||||
#- ./secondary/etc/bind/named.conf:/etc/bind/named.conf:ro
|
#- ./secondary/etc/bind/named.conf:/etc/bind/named.conf:ro
|
||||||
|
|
Loading…
Reference in New Issue