Skip to content

Instantly share code, notes, and snippets.

@roshanraj
Created May 11, 2019 09:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roshanraj/30c385f7f7249c6c8fe18b2ccc304c60 to your computer and use it in GitHub Desktop.
Save roshanraj/30c385f7f7249c6c8fe18b2ccc304c60 to your computer and use it in GitHub Desktop.
postgres docker compose
version: '2'
services:
dbpostgres:
image: postgres
volumes:
- /private/var/lib/postgresql:/var/lib/postgresql
ports:
- "5432:5432"
environment:
POSTGRES_USER: username
POSTGRES_PASSWORD: password
POSTGRES_DB: pgdb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment