init manual

This commit is contained in:
peskyadmin 2025-04-09 18:36:10 -05:00
parent 35f7e7b4ca
commit 6a129fcb6f

View File

@ -0,0 +1,31 @@
services:
prometheus-ts:
image: tailscale/tailscale:latest
hostname: prometheus
container_name: prometheus-ts
environment:
- TS_AUTHKEY={{YOUR_TAILSCALE_AUTHKEY}}
- TS_STATE_DIR=/var/lib/tailscale
- TS_SERVE_CONFIG=/config/serve.json
volumes:
- ./tailscale/tailscale-data:/var/lib/tailscale
- ./tailscale/config:/config
- /dev/net/tun:/dev/net/tun
cap_add:
- net_admin
- sys_module
restart: unless-stopped
prometheus:
image: prom/prometheus
container_name: prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
# ports:
# - 9090:9090
restart: unless-stopped
volumes:
- ./prometheus/etc/prometheus:/etc/prometheus
- ./prometheus/data:/prometheus
network_mode: service:prometheus-ts
depends_on:
- prometheus-ts