docker-compose.yaml 971 B

1234567891011121314151617181920212223242526272829303132333435
  1. services:
  2. headscale:
  3. image: headscale/headscale:stable
  4. container_name: headscale
  5. volumes:
  6. - /etc/timezone:/etc/timezone
  7. - /etc/localtime:/etc/localtime
  8. - ./headscale/config:/etc/headscale
  9. - ./headscale/data:/var/lib/headscale
  10. ports:
  11. - 3478:3478
  12. - 27896:8080
  13. command: serve
  14. restart: unless-stopped
  15. profiles:
  16. - headscale
  17. caddy-lan:
  18. image: caddy:latest
  19. network_mode: host
  20. restart: unless-stopped
  21. container_name: caddy-lan
  22. # ports:
  23. # - 9880:80
  24. volumes:
  25. - /etc/timezone:/etc/timezone
  26. - /etc/localtime:/etc/localtime
  27. - ./app/caddy-lan/lan.Caddyfile:/etc/caddy/Caddyfile
  28. - ./app/caddy-lan/site:/srv
  29. - ./app/caddy-lan/data:/data
  30. - ./app/caddy-lan/config:/config
  31. - ./app/caddy-lan/run:/run
  32. - ./app/caddy-lan/web:/mnt/caddy/web
  33. # extra_hosts:
  34. # - "host.docker.internal:host-gateway"