Add initial Prometheus compose file
This commit is contained in:
commit
9a46df7881
21
docker-compose.yml
Normal file
21
docker-compose.yml
Normal file
@ -0,0 +1,21 @@
|
||||
volumes:
|
||||
config:
|
||||
data:
|
||||
|
||||
networks:
|
||||
traefik:
|
||||
external: true
|
||||
|
||||
services:
|
||||
prometheus:
|
||||
image: prom/prometheus:${VERSION:?}
|
||||
volumes:
|
||||
- config:/etc/prometheus
|
||||
- data:/prometheus
|
||||
networks:
|
||||
- traefik
|
||||
labels:
|
||||
- "traefik.http.routers.${ROUTER:-prometheus}.rule=Host(`${DOMAIN:-prom.local.krislamo.org}`)"
|
||||
- "traefik.http.routers.${ROUTER:-prometheus}.entrypoints=web"
|
||||
- "traefik.enable=true"
|
||||
- "traefik.docker.network=traefik"
|
Loading…
x
Reference in New Issue
Block a user