version: '3'
services:

  dnsserver:
    image: debian:11.6
    container_name: dockerdns
    ports:
        - "127.0.0.1:53:53/udp"
        - "127.0.0.1:53:53/tcp"
    build:
      context: ./
      dockerfile: Dockerfile
    networks:
      192.168.178.0:
        ipv4_address: 192.168.178.3

    environment:
      - TZ=Europe/Berlin
    dns:
      - 192.168.178.3
      - 8.8.8.8
      - 8.8.4.4

networks:
  192.168.178.0:
    external: true

