diff --git a/headscale/headscale-stack.yaml b/headscale/headscale-stack.yaml new file mode 100644 index 0000000..2d634d3 --- /dev/null +++ b/headscale/headscale-stack.yaml @@ -0,0 +1,34 @@ +services: + app: + container_name: headscale + image: headscale/headscale:latest + command: serve + ports: + - '27896:8080' + - '27897:9090' + volumes: + - 'headscale_config:/etc/headscale/' + - 'headscale_data:/var/lib/headscale/' + networks: + - headscale_network + deploy: + replicas: 1 + placement: + constraints: + - node.role == manager + resources: + limits: + cpus: "0.5" + memory: 512M + +networks: + headscale_network: + driver: overlay + attachable: true + external: true + +volumes: + headscale_config: + external: true + headscale_data: + external: true