2018-06-07 20:09:51 +00:00
|
|
|
version: '3.4'
|
2017-09-04 20:49:43 +00:00
|
|
|
services:
|
|
|
|
mongo:
|
2018-09-26 20:14:06 +00:00
|
|
|
image: mongo:3.6
|
2018-06-07 20:09:51 +00:00
|
|
|
volumes:
|
|
|
|
- dbdata:/data/db
|
2018-06-26 01:18:40 +00:00
|
|
|
app:
|
2018-08-21 20:17:36 +00:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
target: production
|
2018-09-26 20:14:06 +00:00
|
|
|
# uncomment the following line to pull the image from docker hub
|
2018-08-21 20:17:36 +00:00
|
|
|
# image: index.docker.io/catarak/p5.js-web-editor:latest
|
2018-09-26 20:14:06 +00:00
|
|
|
# uncomment the following lines if you don't want export all of the variables
|
|
|
|
# defined in your .env file for testing
|
2018-08-21 20:17:36 +00:00
|
|
|
# env_file:
|
|
|
|
# - "$PWD/.env"
|
2018-06-26 01:18:40 +00:00
|
|
|
environment:
|
2018-08-10 21:11:04 +00:00
|
|
|
- API_URL
|
|
|
|
- MONGO_URL
|
|
|
|
- PORT
|
|
|
|
- SESSION_SECRET
|
|
|
|
- AWS_ACCESS_KEY
|
|
|
|
- AWS_SECRET_KEY
|
|
|
|
- S3_BUCKET
|
|
|
|
- AWS_REGION
|
|
|
|
- GITHUB_ID
|
|
|
|
- GITHUB_SECRET
|
|
|
|
- MAILGUN_DOMAIN
|
|
|
|
- MAILGUN_KEY
|
|
|
|
- EMAIL_SENDER
|
|
|
|
- EMAIL_VERIFY_SECRET_TOKEN
|
|
|
|
- S3_BUCKET_URL_BASE
|
|
|
|
- GG_EXAMPLES_USERNAME
|
|
|
|
- GG_EXAMPLES_PASS
|
|
|
|
- GG_EXAMPLES_EMAIL
|
|
|
|
- GOOGLE_ID
|
|
|
|
- GOOGLE_SECRET
|
|
|
|
- EXAMPLE_USER_EMAIL
|
|
|
|
- EXAMPLE_USER_PASSWORD
|
|
|
|
- FORCE_TO_HTTPS
|
2018-09-26 20:14:06 +00:00
|
|
|
# you can either set this in your .env or as an environment variables
|
|
|
|
# or here YOU CHOOSE
|
|
|
|
# - MONGO_URL=mongodb://mongo:27017/p5js-web-editor
|
2018-06-26 01:18:40 +00:00
|
|
|
volumes:
|
|
|
|
- .:/opt/node/app
|
|
|
|
- /opt/node/app/node_modules
|
|
|
|
ports:
|
|
|
|
- '8000:8000'
|
|
|
|
depends_on:
|
|
|
|
- mongo
|
2018-06-07 20:09:51 +00:00
|
|
|
volumes:
|
|
|
|
dbdata:
|