Skip to content

Instantly share code, notes, and snippets.

@gnschenker
Created October 4, 2019 08:15
Show Gist options
  • Save gnschenker/10e537509c772e098202a6cb610ec51f to your computer and use it in GitHub Desktop.
Save gnschenker/10e537509c772e098202a6cb610ec51f to your computer and use it in GitHub Desktop.
Step 1: docker-compose.yml file
version: "2.4"
services:
db:
image: postgres:12.0-alpine
volumes:
- pg-data:/var/lib/postgresql/data
- ./db/init:/docker-entrypoint-initdb.d
ports:
- 5432
environment:
POSTGRES_DB: sampledb
POSTGRES_USER: pguser
POSTGRES_PASSWORD: topsecret
volumes:
pg-data:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment