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:
|
2020-09-21 10:22:19 +00:00
|
|
|
context: ./
|
2018-08-21 20:17:36 +00:00
|
|
|
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
|
2020-12-16 07:49:12 +00:00
|
|
|
env_file:
|
|
|
|
- "$PWD/.env.production"
|
|
|
|
# environment:
|
|
|
|
# - API_URL
|
|
|
|
# - AWS_ACCESS_KEY
|
|
|
|
# - AWS_REGION
|
|
|
|
# - AWS_SECRET_KEY
|
|
|
|
# - CORS_ALLOW_LOCALHOST
|
|
|
|
# - EMAIL_SENDER
|
|
|
|
# - EMAIL_VERIFY_SECRET_TOKEN
|
|
|
|
# - EXAMPLE_USERNAME
|
|
|
|
# - EXAMPLE_USER_EMAIL
|
|
|
|
# - EXAMPLE_USER_PASSWORD
|
|
|
|
# - GG_EXAMPLES_USERNAME
|
|
|
|
# - GG_EXAMPLES_EMAIL
|
|
|
|
# - GG_EXAMPLES_PASS
|
|
|
|
# - ML5_EXAMPLES_USERNAME
|
|
|
|
# - ML5_EXAMPLES_EMAIL
|
|
|
|
# - ML5_EXAMPLES_PASS
|
|
|
|
# - GITHUB_ID
|
|
|
|
# - GITHUB_SECRET
|
|
|
|
# - GOOGLE_ID
|
|
|
|
# - GOOGLE_SECRET
|
|
|
|
# - MAILGUN_DOMAIN
|
|
|
|
# - MAILGUN_KEY
|
|
|
|
# - MONGO_URL
|
|
|
|
# - PORT
|
|
|
|
# - S3_BUCKET
|
|
|
|
# - S3_BUCKET_URL_BASE
|
|
|
|
# - SESSION_SECRET
|
|
|
|
# - UI_ACCESS_TOKEN_ENABLED
|
|
|
|
# - UPLOAD_LIMIT
|
|
|
|
# - MOBILE_ENABLED
|
2020-09-21 10:22:19 +00:00
|
|
|
|
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:
|
2020-09-21 10:22:19 +00:00
|
|
|
- .:/usr/src/app
|
|
|
|
- /usr/src/app/node_modules
|
2018-06-26 01:18:40 +00:00
|
|
|
ports:
|
|
|
|
- '8000:8000'
|
|
|
|
depends_on:
|
|
|
|
- mongo
|
2018-06-07 20:09:51 +00:00
|
|
|
volumes:
|
|
|
|
dbdata:
|