ansible / django-ansible-base

Apache License 2.0
12 stars 43 forks source link

Make stop-postgres target remove the container as before #549

Closed AlanCoding closed 1 month ago

AlanCoding commented 1 month ago

With a recent merge of https://github.com/ansible/django-ansible-base/pull/515 we changed behavior which was relied on in a few places for dev environment stuff - the postgres container won't auto-delete itself when stopped.

You can't get this behavior exactly with docker-compose, but this seems close enough

This changes the behavior back to how it was before, in that make stop-postgres will stop and remove the container. This makes the bootstrap script a little less fragile.

sonarcloud[bot] commented 1 month ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud