2018-06-07 20:09:51 +00:00
|
|
|
version: '3.4'
|
2018-05-18 01:43:06 +00:00
|
|
|
services:
|
|
|
|
mongo:
|
|
|
|
image: mongo:3.4.7
|
2018-06-07 20:09:51 +00:00
|
|
|
volumes:
|
|
|
|
- dbdata:/data/db
|
2018-06-20 17:01:11 +00:00
|
|
|
app:
|
2018-05-18 01:43:06 +00:00
|
|
|
build:
|
2018-06-07 20:09:51 +00:00
|
|
|
context: ./
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
target: development
|
2018-05-18 01:43:06 +00:00
|
|
|
environment:
|
|
|
|
- MONGO_URL=mongodb://mongo:27017/p5js-web-editor
|
|
|
|
volumes:
|
2018-06-07 20:09:51 +00:00
|
|
|
- .:/usr/src/app
|
|
|
|
- /usr/src/app/node_modules
|
2018-05-18 01:43:06 +00:00
|
|
|
ports:
|
|
|
|
- '8000:8000'
|
|
|
|
depends_on:
|
|
|
|
- mongo
|
2018-06-07 20:09:51 +00:00
|
|
|
volumes:
|
|
|
|
dbdata:
|