Created
August 15, 2017 02:00
-
-
Save oosidat/646a285c8a375d937baa0933edcc475e to your computer and use it in GitHub Desktop.
Simple docker-compose for starting up mongo, redis and postgres in docker...
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
mongo: | |
image: mongo:3.2.11 | |
volumes: | |
- /data/db/mongo | |
ports: | |
- "27017:27017" | |
redis: | |
image: redis | |
volumes: | |
- /data/db/redis | |
ports: | |
- "6379:6379" | |
postgres: | |
image: postgres | |
ports: | |
- "5432:5432" | |
environment: | |
POSTGRES_USER: mydbname | |
PGDATA: /data/db/postgres |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
if the environment variable POSTGRES_USER is not specified, a default db will be setup.
Also, on MacOS,
psql
might not work properly:However, specifying the host, user and db worked: