feat: put Patrizio inside VPN #43
@ -1,12 +1,40 @@
|
|||||||
services:
|
services:
|
||||||
patrizio:
|
patrizio:
|
||||||
build:
|
image: ghcr.io/polpetta/patrizio-bot:v0.2.0
|
||||||
context: .
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
command: -f /data/ serve
|
command: -f /data/ serve
|
||||||
volumes:
|
volumes:
|
||||||
- ./data:/data:rw
|
- ./data:/data:rw
|
||||||
|
depends_on:
|
||||||
|
tailscale:
|
||||||
|
condition: service_healthy
|
||||||
|
logging:
|
||||||
|
driver: "json-file"
|
||||||
|
options:
|
||||||
|
mode: "non-blocking"
|
||||||
|
max-size: "10m"
|
||||||
|
max-file: "3"
|
||||||
|
tailscale:
|
||||||
|
hostname: patrizio
|
||||||
|
image: tailscale/tailscale:latest
|
||||||
|
restart: unless-stopped
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD-SHELL", "tailscale status"]
|
||||||
|
interval: 1s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 60
|
||||||
|
volumes:
|
||||||
|
- /srv/docker/patrizio/tailscale:/var/lib
|
||||||
|
- /lib/modules:/lib/modules:ro
|
||||||
|
devices:
|
||||||
|
- /dev/net/tun:/dev/net/tun
|
||||||
|
cap_add:
|
||||||
|
- net_admin
|
||||||
|
- sys_module
|
||||||
|
- net_raw
|
||||||
|
command: tailscaled
|
||||||
|
networks:
|
||||||
|
- internal
|
||||||
logging:
|
logging:
|
||||||
driver: "json-file"
|
driver: "json-file"
|
||||||
options:
|
options:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user