Skip to content

Instantly share code, notes, and snippets.

@ranhsd
Created May 16, 2017 08:11
Show Gist options
  • Save ranhsd/76498d90bf5c8f2d30f742abcfd438d6 to your computer and use it in GitHub Desktop.
Save ranhsd/76498d90bf5c8f2d30f742abcfd438d6 to your computer and use it in GitHub Desktop.
docker-compose
version: "2"
services:
# Node.js parse-server application image
app:
build: ./app
command: npm start -- /parse-server/config/config.json
container_name: my-parse-app
volumes:
- ./app:/parse-server/
- /parse-server/node_modules
ports:
- "1337:1337"
links:
- mongo
# MongoDB image
mongo:
image: mongo
container_name: mongo-database
ports:
- "27017:27017"
volumes_from:
- mongodata
# MongoDB image volume for persistence
mongodata:
image: mongo
volumes:
- ./data/db:/data/db
command:
- --break-mongo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment