Last active
December 20, 2018 14:08
-
-
Save philippeoz/8fc82fa04dc9d323dbb13fe9403753ae to your computer and use it in GitHub Desktop.
Postgres compose file
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
version: "2" | |
services: | |
db: | |
image: postgres | |
container_name: postgres_docker | |
environment: | |
- POSTGRES_USER=postgres | |
- POSTGRES_PASSWORD=mypassword | |
- POSTGRES_DB=postgres | |
ports: | |
- "5432:5432" | |
volumes: | |
- pgdata:/var/lib/postgresql/data | |
restart: always | |
volumes: | |
pgdata: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment