-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
38 lines (37 loc) · 904 Bytes
/
docker-compose.yaml
File metadata and controls
38 lines (37 loc) · 904 Bytes
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
version: "3.4"
services:
headscale:
container_name: headscale
image: headscale/headscale:0.22.1
volumes:
- ./config:/etc/headscale/
- ./data:/var/lib/headscale
command: headscale serve
restart: unless-stopped
headscale-ui:
container_name: headscale-ui
image: ghcr.io/gurucomputing/headscale-ui:latest
restart: unless-stopped
depends_on:
- headscale
caddy:
image: caddy:2.6.4
container_name: caddy
restart: unless-stopped
stdin_open: true
tty: true
depends_on:
- headscale
- headscale-ui
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- caddy_data:/data
- caddy_conf:/config
- /etc/localtime:/etc/localtime:ro
ports:
- "80:80"
- "443:443"
entrypoint: /usr/bin/caddy run --adapter caddyfile --config /etc/caddy/Caddyfile
volumes:
caddy_data: {}
caddy_conf: {}