2018-06-07 22:09:51 +02:00
|
|
|
version: '3.4'
|
2017-09-04 22:49:43 +02:00
|
|
|
services:
|
|
|
|
mongo:
|
2018-06-26 03:18:40 +02:00
|
|
|
image: mongo:3.4
|
2018-06-07 22:09:51 +02:00
|
|
|
volumes:
|
|
|
|
- dbdata:/data/db
|
2018-06-26 03:18:40 +02:00
|
|
|
- "$PWD/mongo/:/docker-entrypoint-initdb.d/"
|
2018-06-05 00:34:40 +02:00
|
|
|
expose:
|
|
|
|
- "27017"
|
2018-06-26 03:18:40 +02:00
|
|
|
ports:
|
|
|
|
- '27017:27017'
|
2018-06-26 01:13:31 +02:00
|
|
|
# restart: always
|
2018-08-09 20:12:17 +02:00
|
|
|
# env_file:
|
|
|
|
# - "$PWD/.env"
|
2018-08-10 23:11:04 +02:00
|
|
|
environment:
|
|
|
|
- MONGO_INITDB_ROOT_USERNAME
|
|
|
|
- MONGO_INITDB_ROOT_PASSWORD
|
|
|
|
- MONGO_INITDB_DATABASE
|
|
|
|
- MONGO_RW_USERNAME
|
|
|
|
- MONGO_RW_PASSWORD
|
2018-06-26 03:18:40 +02:00
|
|
|
app:
|
2018-08-21 22:17:36 +02:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
target: production
|
|
|
|
# image: index.docker.io/catarak/p5.js-web-editor:latest
|
|
|
|
# env_file:
|
|
|
|
# - "$PWD/.env"
|
2018-06-26 03:18:40 +02:00
|
|
|
environment:
|
2018-08-10 23:11:04 +02:00
|
|
|
- API_URL
|
|
|
|
- MONGO_URL
|
|
|
|
- MONGO_NAME
|
|
|
|
- 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
|
|
|
|
- MONGO_INITDB_ROOT_USERNAME
|
|
|
|
- MONGO_INITDB_ROOT_PASSWORD
|
|
|
|
- MONGO_INITDB_DATABASE
|
|
|
|
- MONGO_RW_USERNAME
|
|
|
|
- MONGO_RW_PASSWORD
|
|
|
|
- MONGO_HOSTNAME
|
|
|
|
- MONGO_PORT
|
|
|
|
- FORCE_TO_HTTPS
|
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:
|