Added sample core dns catalog file
This commit is contained in:
@@ -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
59
core-dns.json
Normal 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"
|
||||
}
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user