Created
May 16, 2017 08:11
-
-
Save ranhsd/76498d90bf5c8f2d30f742abcfd438d6 to your computer and use it in GitHub Desktop.
docker-compose
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: "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