Moving container to tailscale container

This commit is contained in:
Paul Hartman 2024-10-12 03:41:36 -05:00
parent 7baf48bb03
commit 756a343b37
2 changed files with 19 additions and 4 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
config/ config/
tailscale_var_lib/

View file

@ -1,5 +1,18 @@
--- ---
services: services:
calibre-tailscale:
container_name: calibre-tailscale
hostname: calibre-web # This will become the tailscale device name
image: ghcr.io/tailscale/tailscale:latest
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
restart: always
calibre-web: calibre-web:
image: lscr.io/linuxserver/calibre-web:latest image: lscr.io/linuxserver/calibre-web:latest
container_name: calibre-web container_name: calibre-web
@ -12,7 +25,8 @@ services:
volumes: volumes:
- ./config:/config - ./config:/config
- /home/paul/Documents/Calibre_Library:/books - /home/paul/Documents/Calibre_Library:/books
ports: # ports:
- 8083:8083 # - 8083:8083
- 80:80 # - 80:80
restart: unless-stopped network_mode: service:calibre-tailscale
restart: always