version: "3.7"

services:
  app:
    image: caddy:2-alpine
    restart: always
    ports:
      - "80:80"
      - "443:443"
      - "443:443/udp"
      - "8008:8008"
      - "8448:8448"
    volumes:
      - ./config:/etc/caddy/
      - data:/data
    extra_hosts:
      - host.docker.internal:host-gateway
    networks:
      services:

volumes:
  data:

networks:
  services:
    external: true