first commit

This commit is contained in:
yohan 2024-09-28 12:28:51 +02:00
commit 6fe4f75331
3 changed files with 30 additions and 0 deletions

8
Dockerfile Normal file
View File

@ -0,0 +1,8 @@
FROM debian:stretch
MAINTAINER yohan <783b8c87@scimetis.net>
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get -y install bind9
ENV TZ=Europe/Paris
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
EXPOSE 53
ENTRYPOINT ["/usr/sbin/named", "-u", "bind", "-g"]

1
build Normal file
View File

@ -0,0 +1 @@
docker build -t named .

21
docker-compose.yml Normal file
View File

@ -0,0 +1,21 @@
version: "2.1"
services:
named:
container_name: named
image: named
restart: unless-stopped
ports:
- "192.168.1.3:53:53/tcp"
- "127.0.0.1:53:53/tcp"
- "192.168.1.3:53:53/udp"
- "127.0.0.1:53:53/udp"
volumes:
- etc_bind:/etc/bind:z
- var_bind:/var/cache/bind:z
volumes:
etc_bind:
var_bind: