Skip to content

Instantly share code, notes, and snippets.

@philippeoz
Last active December 20, 2018 14:08
Show Gist options
  • Save philippeoz/8fc82fa04dc9d323dbb13fe9403753ae to your computer and use it in GitHub Desktop.
Save philippeoz/8fc82fa04dc9d323dbb13fe9403753ae to your computer and use it in GitHub Desktop.
Postgres compose file
version: "2"
services:
db:
image: postgres
container_name: postgres_docker
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=mypassword
- POSTGRES_DB=postgres
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
restart: always
volumes:
pgdata:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment