first commit
This commit is contained in:
commit
6fe4f75331
8
Dockerfile
Normal file
8
Dockerfile
Normal 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"]
|
21
docker-compose.yml
Normal file
21
docker-compose.yml
Normal 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:
|
Loading…
Reference in New Issue
Block a user