- docker >= 17.12.0+
- docker-compose
- Clone or download this repository
- Go inside of directory,
cd compose-postgres - Run this command
docker compose up -d
This Compose file contains the following environment variables:
POSTGRES_USERPOSTGRES_PASSWORD
docker-entrypoint-initdb.d is a directory with .sql files. All the scripts in that directory will be executed on start of the container.
Therefore, if you want to add a new database, user, or table, you can add a new .sql file to that directory.
localhost:6001