Created
October 4, 2019 08:15
-
-
Save gnschenker/10e537509c772e098202a6cb610ec51f to your computer and use it in GitHub Desktop.
Step 1: docker-compose.yml file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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