mirror of
https://github.com/rodneyosodo/homelab.git
synced 2026-06-23 04:10:19 +00:00
f5051c6028
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com>
16 lines
442 B
YAML
16 lines
442 B
YAML
services:
|
|
prometheus:
|
|
container_name: prometheus
|
|
image: docker.io/prom/prometheus:v3.12.0
|
|
restart: unless-stopped
|
|
networks:
|
|
- homelab-network
|
|
security_opt:
|
|
- no-new-privileges:true
|
|
ports:
|
|
- 4081:9090
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- ./docker-compose/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
|
|
- ~/docker-volumes/prometheus/data:/prometheus
|