e74f730d7a
Add initiall commit that tests metrics reading using prometheus on docker Signed-off-by: Rodney Osodo <socials@rodneyosodo.com>
31 lines
690 B
YAML
31 lines
690 B
YAML
networks:
|
|
nameko-prometheus-base-net:
|
|
driver: bridge
|
|
|
|
volumes:
|
|
prometheus-data:
|
|
|
|
services:
|
|
my_service:
|
|
image: gitea.rodneyosodo.com/rodneyosodo/nameko-prometheus:latest
|
|
container_name: nameko-service
|
|
restart: on-failure
|
|
ports:
|
|
- 8000:8000
|
|
networks:
|
|
- nameko-prometheus-base-net
|
|
|
|
prometheus:
|
|
image: prom/prometheus:v2.45.6
|
|
container_name: nameko-prometheus
|
|
restart: unless-stopped
|
|
command:
|
|
- "--config.file=/etc/prometheus/prometheus.yaml"
|
|
ports:
|
|
- 9090:9090
|
|
volumes:
|
|
- ./prometheus.yaml:/etc/prometheus/prometheus.yaml
|
|
- prometheus-data:/prometheus
|
|
networks:
|
|
- nameko-prometheus-base-net
|