Files
Rodney Osodo e74f730d7a refactor(docker): Add docker demo
Add initiall commit that tests metrics reading using prometheus on docker

Signed-off-by: Rodney Osodo <socials@rodneyosodo.com>
2024-07-09 23:38:48 +03:00

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