-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
26 lines (26 loc) · 1023 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
version: "2.1"
services:
tailscale:
hostname: myservice # This will become the tailscale device name
image: tailscale/tailscale
volumes:
- "./tailscale_var_lib:/var/lib" # State data will be stored in this directory
- "/dev/net/tun:/dev/net/tun" # Required for tailscale to work
cap_add: # Required for tailscale to work
- net_admin
- sys_module
command: tailscaled
sway:
build: . # Your image goes here
environment:
- XDG_RUNTIME_DIR=/home/Rohan
- WAYLAND_DISPLAY=$WAYLAND_DISPLAY
- WLR_BACKENDS=headless
- WLR_LIBINPUT_NO_DEVICES=1
command: dbus-run-session -- sway
user: Rohan
tty: true
stdin_open: true
volumes:
- $XDG_RUNTIME_DIR/$WAYLAND_DISPLAY:/home/Rohan/$WAYLAND_DISPLAY
network_mode: service:tailscale