-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
39 lines (39 loc) · 992 Bytes
/
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
version: "3"
services:
tailscale:
image: ghcr.io/tailscale/tailscale:v1.32.2
volumes:
- "/dev/net/tun:/dev/net/tun"
- ./:/root/mpyc
- tailscale:/data/tailscale
- /var/keys:/var/keys
privileged: true
cap_add:
- net_admin
- sys_module
restart: unless-stopped
command: [ "/bin/sh", "-c", "/root/mpyc/scripts/entrypoint.sh" ]
environment:
- TS_AUTH_KEY=file:/var/keys/headscale
- TS_ACCEPT_DNS=true
- TS_STATE_DIR=/data/tailscale
- TS_SOCKET=/var/run/tailscale/tailscaled.sock
- TS_USERSPACE=false
- TS_TAILSCALED_EXTRA_ARGS=--tun=headscale0
demo:
image: enikolov/mpyc-demo:nix-v0.0.1
# network_mode: host
network_mode: service:tailscale
# restart: never
privileged: true
cap_add:
- net_admin
- sys_module
volumes:
- ./:/root/mpyc
- /var/keys:/var/keys
working_dir: /root/mpyc/demos
command:
- "/bin/sh"
volumes:
tailscale: