TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.

Follow publication

Member-only story

Getting started with Postgres in Docker

Mike Huls
TDS Archive
Published in
5 min readJan 2, 2022
Some beautiful Postgres containers (image by Bisakha Datta on Unsplash)

Setup

POSTGRES_HOST=my_db
POSTGRES_USER=mike
POSTGRES_PASSWORD=supersecretpassword
POSTGRES_DB=my_project_db
We can’t have a Docker-related article without an image of containers, right? (image by Tri Eptaroka Mardiana on Unsplash)

Spinning up our container

1. Passing an env file

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

TDS Archive
TDS Archive

Published in TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.

Mike Huls
Mike Huls

Written by Mike Huls

I write about interesting programming-related things: techniques, system architecture, software design and how to apply them in the best way. — mikehuls.com

No responses yet

Write a response