Created
August 9, 2018 17:29
-
-
Save alexshagov/fdd7abc50f6d0fce4c936dfec125e772 to your computer and use it in GitHub Desktop.
PostgreSQL docker-compose
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 | |
volumes: | |
- db-data:/var/lib/postgresql/data | |
ports: | |
- "5432:5432" | |
environment: | |
- POSTGRES_USER=username | |
- POSTGRES_PASSWORD=password | |
volumes: | |
db-data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment