getsentry / devservices

Apache License 2.0
1 stars 0 forks source link

Handle detection of common dependencies #45

Closed hubertdeng123 closed 1 week ago

hubertdeng123 commented 1 week ago

Dependencies of snuba: clickhouse, redis, kafka

Dependencies of relay: redis, kafka

If snuba and relay are both started with devservices and user tries to stop relay, redis and kafka should stay up because snuba is using them too.

hubertdeng123 commented 1 week ago

To avoid saving state, I think we can use docker compose ls as it shows us which projects are in use

❯ docker compose ls NAME STATUS CONFIG FILES devservices running(3) /Users/hubertdeng/code/relay/devservices/config.yml,/Users/hubertdeng/code/snuba/devservices/config.yml

hubertdeng123 commented 1 week ago

It seems also more reasonable to use COMPOSE_PROJECT_NAME to specify the service name as compose project for our uses so our project names are not all devservices