blob: 515630c202b6c75460fe9bd957b27f08ca928422 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
---
services:
headscale:
image: headscale/headscale:stable-debug # until something better comes along with wget or i make my own dockerfile...
pull_policy: always
restart: unless-stopped
command: serve
volumes:
- ./config:/etc/headscale
- ./data:/var/lib/headscale
networks:
- proxy
environment:
- DEPLOYMENT_TIME={{ deployment_time }}
- VIRTUAL_HOST={{ headscale_host }}
- VIRTUAL_PORT={{ headscale_port }}
- LETSENCRYPT_HOST={{ headscale_host }}
{% if homelab_build %}
healthcheck:
disable: true
{% else %}
healthcheck:
test: ["CMD", "wget", "-qO", "-", "http://localhost:{{ headscale_port }}/health"]
interval: 10s
timeout: 5s
retries: 3
{% endif %}
headscale-ui:
image: ghcr.io/gurucomputing/headscale-ui:latest
pull_policy: always
restart: unless-stopped
networks:
- proxy
environment:
- DEPLOYMENT_TIME={{ deployment_time }}
- VIRTUAL_HOST={{ headscale_host }}
- VIRTUAL_PORT={{ headscale_port }}
- LETSENCRYPT_HOST={{ headscale_host }}
- VIRTUAL_PATH=/web/
- VIRTUAL_DEST=/web/
networks:
proxy:
external: true
|