1
Docker compose file for CoreDNS?
(alien.top)
version: '3'
services:
coredns:
image: coredns/coredns
container_name: coredns
restart: always
volumes:
- /home//Documents/docker/coredns/:/root/
ports:
- "53:53/udp"
command: -conf /root/Corefile
This should do it.
The bit after the image when running docker run
from the command line is the command
, which are arguments passed to the container’s entrypoint. So in your case, it would be command: -conf /root/Corefile
https://docs.docker.com/compose/compose-file/compose-file-v3/#command