Files
Homelab/caddy/compose.yml
MSWS 9f06b7d7f5 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
2025-03-16 21:14:13 -07:00

31 lines
593 B
YAML

services:
caddy:
# image: ghcr.io/caddybuilds/caddy-cloudflare:latest
build: .
restart: unless-stopped
cap_add:
- NET_ADMIN
ports:
- "22:22"
- "80:80"
- "443:443"
- "443:443/udp"
volumes:
- $PWD/Caddyfile:/etc/caddy/Caddyfile
- $PWD/site:/srv
- caddy_data:/data
- caddy_config:/config
environment:
- CLOUDFLARE_API_TOKEN=${CLOUDFLARE_API_TOKEN}
- CADDY_ADMIN=caddy-caddy-1:2019
networks:
- cloudflared
volumes:
caddy_data:
caddy_config:
networks:
cloudflared:
external: true