Agreed and confused. Interested to find what would be wrong with this? (from my docker-compose.yml under the db service)
volumes:
- ./data/postgresql:/var/lib/postgresql/data
Reverse question that no-one seems to ask: What's the advantage of running a DB on a container?
Spinning a new db in continuous integration for integration tests.