Start PostgreSQL with a database
On startup a user and database is created.
DB_NAME=database1 DB_USER=user1 PASSWORD=mysecret
For connecting with user postgres, as password is generated on startup and echoed to standard out. If environment variable PGPASSWORD is set, this password is used.
Docker Pull Command