Last active
June 27, 2019 07:09
-
-
Save derianpt/abe592c7c9697260e54836517941c952 to your computer and use it in GitHub Desktop.
medium docker part 2
This file contains 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
database: | |
image: "postgres:alpine" | |
environment: | |
POSTGRES_USER: postgres | |
POSTGRES_DB: mydb | |
ports: | |
- "4201:5432" | |
# persist to a named volume | |
volumes: | |
- server_db:/var/lib/postgresql/data | |
volumes: | |
server_db: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi
you have to add dash (-) to each environment variable.
kr Marko