Im running a simple docker-compose.yml file containing the following directives:
services:
postgres:
image: postgres:12
volumes:
- db-data:/var/lib/postgresql/data:cached
volumes:
db-data:
Everything works as expected and postgres has no trouble creating and finding its database files it seems. However "/var/lib/postgresql" does not even exist in the host filesystem. "/var/lib/docker/volumes/" contains files, but where does "/var/lib/postgresql/data" point to if not the host filesystem?