Created
April 21, 2018 10:21
-
-
Save mrpehlivan/47293acb8b1cfd1af558bf61b71f9db3 to your computer and use it in GitHub Desktop.
postgresql-compose.yml
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: | |
postgresql: | |
image: postgres:9.6-alpine | |
container_name: 'postgresql-db' | |
environment: | |
- POSTGRES_PASSWORD=postgres | |
ports: | |
- 5432:5432 | |
volumes: | |
- postgresql-db-data:/var/lib/postgresql/data | |
- ./initdb:/docker-entrypoint-initdb.d | |
volumes: | |
postgresql-db-data: | |
driver: local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment