Skip to content

Instantly share code, notes, and snippets.

@alkavan
Last active December 29, 2021 12:03
Show Gist options
  • Save alkavan/ca86a07fe4abb380cdfcc504f4655ce8 to your computer and use it in GitHub Desktop.
Save alkavan/ca86a07fe4abb380cdfcc504f4655ce8 to your computer and use it in GitHub Desktop.
Running common containers with docker

Postgres (running on boot)

docker run -d --name postgres --restart always \
-e POSTGRES_USER=postgres \
-e POSTGRES_PASSWORD=mysecretpassword \
-e POSTGRES_DB=mydatabase \
-p 5432:5432 \
postgres:13-alpine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment