1
0
mirror of https://github.com/Haxxnet/Compose-Examples synced 2024-12-24 03:00:19 +00:00
Compose-Examples/examples/headscale/docker-compose.yml

52 lines
2.4 KiB
YAML
Raw Normal View History

2024-01-11 22:44:02 +00:00
services:
2024-01-11 22:44:02 +00:00
headscale:
image: headscale/headscale:0.22
container_name: headscale
2024-01-11 22:44:02 +00:00
pull_policy: always
restart: unless-stopped
command: headscale serve
expose:
- 8080
2024-01-11 22:45:48 +00:00
networks:
- proxy
2024-01-11 22:44:02 +00:00
volumes:
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/headscale/config:/etc/headscale
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/headscale/data:/var/lib/headscale/
labels:
- traefik.enable=true
- traefik.http.routers.headscale-rtr.rule=Host(`headscale.example.com`) && PathPrefix(`/`)
- traefik.http.services.headscale-svc.loadbalancer.server.port=8080
# Optional part for file upload max sizes
2024-01-11 22:44:02 +00:00
- traefik.http.middlewares.limit.buffering.maxRequestBodyBytes=50000000 # optional, only necessary for enabled file uploads
- traefik.http.middlewares.limit.buffering.maxResponseBodyBytes=50000000 # optional, only necessary for enabled file uploads
- traefik.http.middlewares.limit.buffering.memRequestBodyBytes=50000000 # optional, only necessary for enabled file uploads
- traefik.http.middlewares.limit.buffering.memResponseBodyBytes=50000000 # optional, only necessary for enabled file uploads
2024-01-11 22:44:02 +00:00
headscale-ui:
image: ghcr.io/gurucomputing/headscale-ui:latest
container_name: headscale-ui
2024-01-11 22:44:02 +00:00
pull_policy: always
networks:
- proxy
restart: unless-stopped
expose:
- 80
#dns:
# - 1.1.1.1
2024-01-11 22:44:02 +00:00
labels:
- traefik.enable=true
- traefik.http.routers.headscale-ui-rtr.rule=Host(`headscale.example.de`) && PathPrefix(`/web`)
- traefik.http.services.headscale-ui-svc.loadbalancer.server.port=80
# Optional part for traefik middlewares; protect the headscale ui interface; access from local lan only
- traefik.http.routers.headscale-ui-rtr.middlewares=local-ipwhitelist@file
# Optional part for file upload max sizes
2024-01-11 22:44:02 +00:00
- traefik.http.middlewares.limit.buffering.maxRequestBodyBytes=50000000 # optional, only necessary for enabled file uploads
- traefik.http.middlewares.limit.buffering.maxResponseBodyBytes=50000000 # optional, only necessary for enabled file uploads
- traefik.http.middlewares.limit.buffering.memRequestBodyBytes=50000000 # optional, only necessary for enabled file uploads
- traefik.http.middlewares.limit.buffering.memResponseBodyBytes=50000000 # optional, only necessary for enabled file uploads
2024-01-11 22:44:02 +00:00
networks:
proxy:
external: true