Update docker-compose.yml

This commit is contained in:
rov 2025-12-16 22:57:19 -03:00
parent 07be8a8bb8
commit a583649cc5

View File

@ -1,9 +1,27 @@
services:
ts-bazarr:
image: tailscale/tailscale:latest
hostname: prometheus
environment:
- TS_AUTHKEY=tskey-client-kcSo6Wfga411CNTRL-y3Sbf7VZjVCHumLLmUYcVCGe1H2tGRf6?ephemeral=false
- TS_EXTRA_ARGS=--advertise-tags=tag:container
- TS_STATE_DIR=/var/lib/tailscale
# Tell Tailscale how to serve Bazarr securely inside the tailnet
- TS_SERVE_CONFIG=/config/serve.json
volumes:
- tailscale-data-prometheus:/var/lib/tailscale
- ~/ts-prometheus/config:/config
devices:
- /dev/net/tun:/dev/net/tun
cap_add:
- net_admin
- sys_module
restart: unless-stopped
prometheus:
image: prom/prometheus:latest
container_name: prometheus
ports:
- "9090:9090"
network_mode: service:ts-prometheus
command:
# Tell Prometheus to use the mounted configuration file
- --config.file=/etc/prometheus/prometheus.yml
@ -16,6 +34,6 @@ services:
- prometheus_data:/prometheus
restart: unless-stopped
# Define the named volume for persistent data storage
volumes:
tailscale-data-prometheus:
prometheus_data: {}