Quick Tip: Creating a PostgreSQL Container with default User and Password
beld 🎩
1601

Using version ‘3’ format my docker-compose file sets the superuser for the database …

db:
image: postgres:9.3
container_name: db_server
ports:
- "${DOCKER_HOST_DB_PORT}:${DBPORT}"
environment:
- RAILS_ENV
- RACK_ENV
- DEPLOY_TYPE
- PGPORT=$DBPORT
- POSTGRES_USER=$DBUSER
- POSTGRES_PASSWORD=$DBPASS
- POSTGRES_DB=${DBNAME}_${RAILS_ENV}
Like what you read? Give Dewayne VanHoozer a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.