2017-09-04 20:49:43 +00:00
|
|
|
version: '2'
|
|
|
|
services:
|
|
|
|
mongo:
|
|
|
|
image: mongo:3.4.7
|
|
|
|
server:
|
|
|
|
build: .
|
2017-11-06 21:19:43 +00:00
|
|
|
command: npm start
|
2017-09-04 20:49:43 +00:00
|
|
|
environment:
|
|
|
|
- API_URL=/api
|
|
|
|
- MONGO_URL=mongodb://mongo:27017/p5js-web-editor
|
|
|
|
- PORT=8000
|
|
|
|
- SESSION_SECRET=override_in_dotenv
|
|
|
|
- AWS_ACCESS_KEY=override_in_dotenv
|
|
|
|
- AWS_SECRET_KEY=override_in_dotenv
|
|
|
|
- AWS_REGION=override_in_dotenv
|
|
|
|
- S3_BUCKET=override_in_dotenv
|
|
|
|
- GITHUB_ID=override_in_dotenv
|
|
|
|
- GITHUB_SECRET=override_in_dotenv
|
2017-12-04 18:39:54 +00:00
|
|
|
- MAILGUN_KEY=override_in_dotenv
|
2017-09-04 20:49:43 +00:00
|
|
|
volumes:
|
|
|
|
- .:/opt/node/app
|
|
|
|
- /opt/node/app/node_modules
|
|
|
|
ports:
|
|
|
|
- '8000:8000'
|
|
|
|
depends_on:
|
|
|
|
- mongo
|