Moving container to tailscale container
This commit is contained in:
parent
7baf48bb03
commit
756a343b37
2 changed files with 19 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +1,2 @@
|
|||
config/
|
||||
tailscale_var_lib/
|
||||
|
|
|
@ -1,5 +1,18 @@
|
|||
---
|
||||
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:
|
||||
image: lscr.io/linuxserver/calibre-web:latest
|
||||
container_name: calibre-web
|
||||
|
@ -12,7 +25,8 @@ services:
|
|||
volumes:
|
||||
- ./config:/config
|
||||
- /home/paul/Documents/Calibre_Library:/books
|
||||
ports:
|
||||
- 8083:8083
|
||||
- 80:80
|
||||
restart: unless-stopped
|
||||
# ports:
|
||||
# - 8083:8083
|
||||
# - 80:80
|
||||
network_mode: service:calibre-tailscale
|
||||
restart: always
|
||||
|
|
Loading…
Reference in a new issue