Created
June 11, 2019 19:40
-
-
Save roger-king/dd9b271331a878fb3702d3f69314a3e9 to your computer and use it in GitHub Desktop.
docker-compose.yml - postgres example
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" | |
volumes: | |
db: {} | |
services: | |
postgres: | |
image: postgres:11.2 | |
container_name: mentor_db | |
environment: | |
POSTGRES_USER: appuser | |
POSTGRES_PASSWORD: appuser | |
POSTGRES_DB: mentor | |
volumes: | |
- db:/var/lib/postgresql/data | |
ports: | |
- "5432:5432" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment