Skip to content

Instantly share code, notes, and snippets.

@derianpt
Last active June 27, 2019 07:09
Show Gist options
  • Save derianpt/abe592c7c9697260e54836517941c952 to your computer and use it in GitHub Desktop.
Save derianpt/abe592c7c9697260e54836517941c952 to your computer and use it in GitHub Desktop.
medium docker part 2
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:
@loddar
Copy link

loddar commented Jun 27, 2019

Hi

you have to add dash (-) to each environment variable.

kr Marko

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment