Created
September 19, 2018 07:35
-
-
Save qwexvf/3daf478d1c1cb0ee92a93e7676a310d5 to your computer and use it in GitHub Desktop.
simple docker-compose postgresql
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: '3' | |
services: | |
datastore: | |
image: busybox | |
volumes: | |
- db_data:/var/lib/psql | |
postgresql: | |
image: postgres | |
environment: | |
POSTGRES_USER: username | |
POSTGRES_PASSWORD: password | |
ports: | |
- "5432:5432" | |
volumes: | |
- db_data:/var/lib/psql | |
volumes: | |
db_data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment