2018-06-07 22:09:51 +02:00
|
|
|
version: '3.4'
|
2017-09-04 22:49:43 +02:00
|
|
|
services:
|
|
|
|
mongo:
|
2018-09-26 22:14:06 +02:00
|
|
|
image: mongo:3.6
|
2018-06-07 22:09:51 +02:00
|
|
|
volumes:
|
|
|
|
- dbdata:/data/db
|
2018-06-26 03:18:40 +02:00
|
|
|
app:
|
2018-08-21 22:17:36 +02:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
target: production
|
2018-09-26 22:14:06 +02:00
|
|
|
# uncomment the following line to pull the image from docker hub
|
2018-08-21 22:17:36 +02:00
|
|
|
# image: index.docker.io/catarak/p5.js-web-editor:latest
|
2018-09-26 22:14:06 +02: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 22:17:36 +02:00
|
|
|
# env_file:
|
2020-02-25 23:14:50 +01:00
|
|
|
# - "$PWD/.env.production"
|
2018-06-26 03:18:40 +02:00
|
|
|
environment:
|
2018-08-10 23:11:04 +02: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
|
2020-02-25 23:14:50 +01:00
|
|
|
- ML5_EXAMPLES_USERNAME
|
|
|
|
- ML5_EXAMPLES_PASS
|
|
|
|
- ML5_EXAMPLES_EMAIL
|
2018-09-26 22:14:06 +02: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 03:18:40 +02:00
|
|
|
volumes:
|
|
|
|
- .:/opt/node/app
|
|
|
|
- /opt/node/app/node_modules
|
|
|
|
ports:
|
|
|
|
- '8000:8000'
|
|
|
|
depends_on:
|
|
|
|
- mongo
|
2018-06-07 22:09:51 +02:00
|
|
|
volumes:
|
|
|
|
dbdata:
|