Added sample core dns catalog file

This commit is contained in:
2023-01-26 07:12:55 +00:00
parent 061591808d
commit 548b82f310
2 changed files with 62 additions and 5 deletions

View File

@@ -6,12 +6,10 @@ EXPOSE 53/udp
EXPOSE 67/udp
EXPOSE 68/udp
RUN mkdir -p /etc/dnsmasq.d/config
COPY dns.conf /etc/dnsmasq.d/ && \
dhcp-conf /etc/dnsmasq.d/ && \
dhcp-reservations.conf /etc/dnsmasq.d/ && \
hosts.local /etc/dnsmasq.d/ && \
RUN mkdir /etc/dnsmasq.d/config
COPY *.conf /etc/dnsmasq.d/
COPY hosts.local /etc/dnsmasq.d/
COPY entrypoint.sh /
ENTRYPOINT ["/entrypoint.sh"]

59
core-dns.json Normal file
View File

@@ -0,0 +1,59 @@
{
"main": {
"SERVICE_NAME": "core-dns",
"DOMAIN": "null"
},
"containers": [
{
"IMAGE": "registry.format.hu/core-dns:latest",
"UPDATE": "true",
"NAME": "core_dns",
"SELECTOR": "coredns1",
"SCALE": "0",
"MEMORY": "64M",
"NETWORK": "core-dns",
"VOLUMES": [
{
"SOURCE": "/etc/system/data/dns/hosts.local",
"DEST": "/etc/dnsmasq.d/hosts.local",
"TYPE": "ro"
},
{
"SOURCE": "/etc/system/log/dns/",
"DEST": "/var/log/dnsmasq/",
"TYPE": "rw"
}
],
"PORTS": [
{
"SOURCE": "null",
"DEST": "53",
"TYPE": "udp"
},
{
"SOURCE": "null",
"DEST": "67",
"TYPE": "udp"
},
{
"SOURCE": "null",
"DEST": "68",
"TYPE": "udp"
}
],
"READYNESS": [
{"tcp": ""},
{"HTTP": ""},
{"EXEC": "/ready.sh"}
],
"ENVS": [
],
"EXTRA": "--restart unless-stopped",
"DEPEND": "null",
"START_ON_BOOT": "true",
"CMD": "null",
"PRE_START": "null",
"POST_START": "null"
}
]
}