-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsidecar-compose.yaml
More file actions
62 lines (60 loc) · 1.57 KB
/
sidecar-compose.yaml
File metadata and controls
62 lines (60 loc) · 1.57 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
services:
.sidecar:
restart: always
image: ghcr.io/offbyone/sidecar:main
volumes:
- tailscale-data:/var/lib/tailscale
devices:
- /dev/net/tun
cap_add: # Required for tailscale to work
- net_admin
- sys_module
labels:
- "com.centurylinklabs.watchtower.enable=true"
.simple-sidecar:
image: tailscale/tailscale:latest
environment:
- TS_STATE_DIR=/var/lib/tailscale
- TS_SERVE_CONFIG=/config/serve.json
- TS_USERSPACE=false
- TS_ENABLE_HEALTH_CHECK=true
- TS_LOCAL_ADDR_PORT=127.0.0.1:41234
- TS_AUTH_ONCE=true
configs:
- source: ts-serve
target: /config/serve.json
volumes:
- tailscale-data:/var/lib/tailscale
devices:
- /dev/net/tun:/dev/net/tun
cap_add:
- net_admin
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://127.0.0.1:41234/healthz"]
interval: 1m
timeout: 10s
retries: 3
start_period: 10s
restart: unless-stopped
.sidecar-noserve:
image: tailscale/tailscale:latest
environment:
- TS_STATE_DIR=/var/lib/tailscale
- TS_USERSPACE=false
- TS_ENABLE_HEALTH_CHECK=true
- TS_LOCAL_ADDR_PORT=127.0.0.1:41234
- TS_AUTH_ONCE=true
volumes:
- tailscale-data:/var/lib/tailscale
devices:
- /dev/net/tun:/dev/net/tun
cap_add:
- net_admin
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://127.0.0.1:41234/healthz"]
interval: 1m
timeout: 10s
retries: 3
start_period: 10s
restart: unless-stopped