Skip to content

Instantly share code, notes, and snippets.

@roger-king
Created June 11, 2019 19:40
Show Gist options
  • Save roger-king/dd9b271331a878fb3702d3f69314a3e9 to your computer and use it in GitHub Desktop.
Save roger-king/dd9b271331a878fb3702d3f69314a3e9 to your computer and use it in GitHub Desktop.
docker-compose.yml - postgres example
version: "3"
volumes:
db: {}
services:
postgres:
image: postgres:11.2
container_name: mentor_db
environment:
POSTGRES_USER: appuser
POSTGRES_PASSWORD: appuser
POSTGRES_DB: mentor
volumes:
- db:/var/lib/postgresql/data
ports:
- "5432:5432"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment