mirror of
https://github.com/MSWS/Homelab.git
synced 2025-12-05 23:00:24 -08:00
Configure Caddy and Prometheus for internal service communication
- Configure Caddy admin settings for inter-service communication - Set up reverse proxy for Prometheus in Caddyfile - Implement new scrape configuration for Caddy in Prometheus settings - Add scrape target for Caddy listening on port 2019
This commit is contained in:
@@ -60,6 +60,10 @@ stats.local.msws.xyz {
|
|||||||
reverse_proxy grafana:3000
|
reverse_proxy grafana:3000
|
||||||
}
|
}
|
||||||
|
|
||||||
|
prom.local.msws.xyz {
|
||||||
|
reverse_proxy prometheus:9090
|
||||||
|
}
|
||||||
|
|
||||||
photos.local.msws.xyz, photos.msws.xyz {
|
photos.local.msws.xyz, photos.msws.xyz {
|
||||||
reverse_proxy immich_server:2283
|
reverse_proxy immich_server:2283
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ services:
|
|||||||
- caddy_config:/config
|
- caddy_config:/config
|
||||||
environment:
|
environment:
|
||||||
- CLOUDFLARE_API_TOKEN=${CLOUDFLARE_API_TOKEN}
|
- CLOUDFLARE_API_TOKEN=${CLOUDFLARE_API_TOKEN}
|
||||||
|
- CADDY_ADMIN=caddy-caddy-1:2019
|
||||||
networks:
|
networks:
|
||||||
- cloudflared
|
- cloudflared
|
||||||
|
|
||||||
|
|||||||
@@ -37,3 +37,6 @@ scrape_configs:
|
|||||||
bearer_token: 'ZmNmZjkxZDktODU0YS00NDRiLWE2N2YtZTRkZjY5ZGZiZDI4Cg=='
|
bearer_token: 'ZmNmZjkxZDktODU0YS00NDRiLWE2N2YtZTRkZjY5ZGZiZDI4Cg=='
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: [ 'wakapi:3002' ]
|
- targets: [ 'wakapi:3002' ]
|
||||||
|
- job_name: caddy
|
||||||
|
static_configs:
|
||||||
|
- targets: [ 'caddy-caddy-1:2019' ]
|
||||||
|
|||||||
Reference in New Issue
Block a user