-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose.yml
55 lines (51 loc) · 1.44 KB
/
docker-compose.yml
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
version: "2.1"
volumes:
adguardhome_work: {}
adguardhome_conf: {}
tailscale: {}
services:
# https://hub.docker.com/r/adguard/adguardhome
adguard:
build: adguard
network_mode: host
cap_add:
- NET_ADMIN
volumes:
- "adguardhome_work:/opt/adguardhome/work:rw"
- "adguardhome_conf:/opt/adguardhome/conf:rw"
# https://github.com/balenablocks/hostname
hostname:
image: balenablocks/hostname:latest@sha256:b923d6ea886ec48125d2c49e431638d2ef6f4adac574b729b4135cfade3ffdce
restart: no
labels:
io.balena.features.supervisor-api: 1
environment:
SET_HOSTNAME: adguard
# https://hub.docker.com/r/tailscale/tailscale
# https://github.com/tailscale/tailscale/blob/main/cmd/containerboot/main.go
# https://tailscale.com/kb/1282/docker
# https://tailscale.com/kb/1278/tailscaled
# https://tailscale.com/kb/1241/tailscale-up
# https://tailscale.com/kb/1242/tailscale-serve
# https://tailscale.com/kb/1311/tailscale-funnel
tailscale:
build: tailscale
restart: on-failure
environment:
TS_STATE_DIR: /var/lib/tailscale
TS_USERSPACE: false
TS_AUTH_ONCE: false
TS_HOSTNAME: adguard
TS_EXTRA_ARGS: --accept-dns=false --reset
network_mode: host
cap_add:
- NET_ADMIN
- NET_RAW
- SYS_MODULE
labels:
io.balena.features.kernel-modules: 1
tmpfs:
- /tmp
- /run
volumes:
- tailscale:/var/lib/tailscale