ansible / galaxy-dev

Ansible Automation Hub
11 stars 13 forks source link

Add prometheus local dev container and config #221

Closed alikins closed 2 years ago

alikins commented 4 years ago

Add persistent volume for prometheus data.

For local dev/testing of the changes in https://github.com/ansible/galaxy-api/pull/138

Fixes: ansible/galaxy-dev#130

alikins commented 4 years ago

@cutwater Whats the best way to make it optional?

Using an optional secondary docker compose file seems to be what docker docs suggest (https://docs.docker.com/compose/extends/#multiple-compose-files)

I'll split up the prometheus stuff to a second optional compose file.

cutwater commented 4 years ago

@alikins I was thinking about adding prometheus and grafana services to main docker-compose, but not start them by default. E.g. galaxy \ pulp services in docker-compose should not have dependencies to prometheus and grafana and make docker/up command should start only galaxy and pulp services.

P.S. Having multiple compose files sounds like a good idea