Update docker-compose.yml
This commit is contained in:
parent
07be8a8bb8
commit
a583649cc5
@ -1,9 +1,27 @@
|
|||||||
services:
|
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:
|
prometheus:
|
||||||
image: prom/prometheus:latest
|
image: prom/prometheus:latest
|
||||||
container_name: prometheus
|
container_name: prometheus
|
||||||
ports:
|
network_mode: service:ts-prometheus
|
||||||
- "9090:9090"
|
|
||||||
command:
|
command:
|
||||||
# Tell Prometheus to use the mounted configuration file
|
# Tell Prometheus to use the mounted configuration file
|
||||||
- --config.file=/etc/prometheus/prometheus.yml
|
- --config.file=/etc/prometheus/prometheus.yml
|
||||||
@ -16,6 +34,6 @@ services:
|
|||||||
- prometheus_data:/prometheus
|
- prometheus_data:/prometheus
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
# Define the named volume for persistent data storage
|
|
||||||
volumes:
|
volumes:
|
||||||
|
tailscale-data-prometheus:
|
||||||
prometheus_data: {}
|
prometheus_data: {}
|
||||||
Loading…
x
Reference in New Issue
Block a user