Strangely enough, the solution ended up being to change
volumes:
- ./postgres-data:/var/lib/postgresql
to
volumes:
- ./postgres-data:/var/lib/postgresql/data
More Related Contents:
- Changing a postgres containers server port in Docker Compose
- Docker – How can run the psql command in the postgres container?
- Spring Docker container cannot access Postgres Docker container
- Connecting to Postgresql in a docker container from outside
- Docker Compose + Spring Boot + Postgres connection
- Django connection to postgres by docker-compose
- docker postgres pgadmin local connection
- How to customize the configuration file of the official PostgreSQL Docker image?
- How do I mount a host directory as a volume in docker compose
- How to set a path on host for a named volume in docker-compose.yml
- Docker wait for postgresql to be running
- Docker – Postgres and pgAdmin 4 : Connection refused
- How do I seed a mongo database using docker-compose?
- How to make “case-insensitive” query in Postgresql?
- How to create a DB for MongoDB container on start up?
- Rownum in postgresql
- Docker : Can a container A call an executable located on an other container B?
- Postgresql: Scripting psql execution with password
- dynamic sql query in postgres
- Cannot create a database table named ‘user’ in PostgreSQL
- Is there a timeout for idle PostgreSQL connections?
- How to make connection to Postgres via Node.js
- SELECT raises exception in PL/pgSQL function
- Heroku “psql: FATAL: remaining connection slots are reserved for non-replication superuser connections”
- Changing primary key int type to serial
- Return SETOF rows from PostgreSQL function
- Why the “none” image appears in Docker and how can we avoid it
- PSQLException: current transaction is aborted, commands ignored until end of transaction block
- docker-compose build environment variable
- Starting and populating a Postgres container in Docker