

The TCP port 5432 (postgres) of the host 'db' is exposed externally as TCP port 5432. I should also note that the resources.sql. This file creates a host called 'db' from a Postgres version 13 image. If it is not specified, then the default user of postgres will be used. This variable will create the specified user with superuser power and a database with the same name.


This optional environment variable is used in conjunction with POSTGRESPASSWORD to set a user and its password. Docker tag postgres:13.4-buster, as it seems 14 does not have a -buster equivalent. At the moment there are two solutions: Downgrade to PostgreSQL 13-buster, i.e. I dont want to rely on external scripts or even external files to be copied to the container since the nf and nf are rather simple and additional files would add clutter in the project directory. Here is the section from each docker compose, there is one in each project directory From postgres readme on Docker hub: POSTGRESUSER. PostgreSQL Docker tags 13 and 14 seem to be using Debians bullseye which seems to change things in regards to the file system. I havent found a way to customize nf and nf directly from the compose file. Here is the docker file there is one in each project directory FROM postgres:10-alpineĬOPY data/ /docker-entrypoint-initdb.d/ I have a requirement with docker/docker-compose to run 2 different instances of postgres but i need their data to be completely separate as both applications control the database server completely, not just a single database
