mirror of
https://github.com/basnijholt/compose-farm.git
synced 2026-02-03 14:13:26 +00:00
* examples: Add CoreDNS for *.local domain resolution Adds a CoreDNS example that resolves *.local to the Traefik host, making the .local routes in all examples work out of the box. Also removes the redundant Multi-Container Stacks section from README since paperless-ngx already demonstrates this pattern. * examples: Add coredns .env file
28 lines
631 B
YAML
28 lines
631 B
YAML
# CoreDNS - DNS server for .local domain resolution
|
|
#
|
|
# Demonstrates:
|
|
# - Wildcard DNS for *.local domains
|
|
# - Config file mounting from stack directory
|
|
# - UDP/TCP port exposure
|
|
#
|
|
# This enables all the .local routes in the examples to work.
|
|
# Point your devices/router DNS to this server's IP.
|
|
name: coredns
|
|
services:
|
|
coredns:
|
|
image: coredns/coredns:latest
|
|
container_name: coredns
|
|
restart: unless-stopped
|
|
networks:
|
|
- mynetwork
|
|
ports:
|
|
- "53:53/udp"
|
|
- "53:53/tcp"
|
|
volumes:
|
|
- ./Corefile:/root/Corefile:ro
|
|
command: -conf /root/Corefile
|
|
|
|
networks:
|
|
mynetwork:
|
|
external: true
|