Skip to content

Instantly share code, notes, and snippets.

@ardeearam
Last active February 13, 2018 19:29
Show Gist options
  • Save ardeearam/ffc42ff73343eb6f94e671c31ac3c2f4 to your computer and use it in GitHub Desktop.
Save ardeearam/ffc42ff73343eb6f94e671c31ac3c2f4 to your computer and use it in GitHub Desktop.
version: '3'
services:
postgres:
container_name: postgres
image: postgres:9.5.2
ports:
- "5432:5432"
volumes:
- /Users/ardeearam/Docker/postgres:/var/lib/postgresql/data
environment:
- "POSTGRES_PASSWORD=postgres_password"
- "POSTGRES_USER=postgres_user"
mongo:
container_name: mongo
image: mongo:3.6.2
ports:
- "27017:27017"
volumes:
- /Users/ardeearam/Docker/mongodb:/data/db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment