Skip to content

Instantly share code, notes, and snippets.

@riston
Created May 18, 2016 19:38
Show Gist options
  • Save riston/f99653417c1975177879942d65f2ddd8 to your computer and use it in GitHub Desktop.
Save riston/f99653417c1975177879942d65f2ddd8 to your computer and use it in GitHub Desktop.
Docker compose example current dev env.
mongodata:
image: mongo:3.2.6
volumes:
- /data/mongodb
command: --break-mongo
mongo:
image: mongo:3.2.6
volumes_from:
- mongodata
ports:
- "27017:27017"
command: --smallfiles --rest --auth
postgres:
restart: always
image: postgres:latest
volumes_from:
- postgredata
ports:
- "5432:5432"
postgredata:
restart: always
image: postgres:latest
volumes:
- /data/postgre
command: "true"
redis:
restart: always
image: redis:latest
ports:
- "6379:6379"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment