Created
October 12, 2019 14:57
-
-
Save kunthar/fff3c0ca4d1bee973fcf9b6a452fb1fb to your computer and use it in GitHub Desktop.
postgresql docker compose 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: '3' | |
services: | |
db: | |
image: postgres:12 | |
environment: | |
- POSTGRES_USER=postgres | |
- POSTGRES_PASSWORD=postgress | |
- POSTGRES_DB=postgres | |
ports: | |
- "5432:5432" | |
volumes: | |
- /home/yourdir/data:/var/lib/postgresql/data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment