2018-06-07 20:09:51 +00:00
|
|
|
version: '3.4'
|
2017-09-04 20:49:43 +00:00
|
|
|
services:
|
|
|
|
mongo:
|
2018-06-26 01:18:40 +00:00
|
|
|
image: mongo:3.4
|
2018-06-07 20:09:51 +00:00
|
|
|
volumes:
|
|
|
|
- dbdata:/data/db
|
2018-06-26 01:18:40 +00:00
|
|
|
- "$PWD/mongo/:/docker-entrypoint-initdb.d/"
|
2018-06-04 22:34:40 +00:00
|
|
|
expose:
|
|
|
|
- "27017"
|
2018-06-26 01:18:40 +00:00
|
|
|
ports:
|
|
|
|
- '27017:27017'
|
2018-06-25 23:13:31 +00:00
|
|
|
# restart: always
|
2018-08-09 18:12:17 +00:00
|
|
|
# env_file:
|
|
|
|
# - "$PWD/.env"
|
2018-08-10 21:11:04 +00:00
|
|
|
environment:
|
|
|
|
- MONGO_INITDB_ROOT_USERNAME
|
|
|
|
- MONGO_INITDB_ROOT_PASSWORD
|
|
|
|
- MONGO_INITDB_DATABASE
|
|
|
|
- MONGO_RW_USERNAME
|
|
|
|
- MONGO_RW_PASSWORD
|
2018-06-26 01:18:40 +00:00
|
|
|
nginx:
|
2018-06-27 02:05:08 +00:00
|
|
|
image: nginx:1.13
|
|
|
|
volumes:
|
|
|
|
- "$PWD/nginx/alpha.editor.p5js.org.conf:/etc/nginx/conf.d/default.conf"
|
2018-06-26 01:18:40 +00:00
|
|
|
ports:
|
|
|
|
- '80:80'
|
2018-06-27 02:05:08 +00:00
|
|
|
depends_on:
|
|
|
|
- app
|
2018-07-03 19:04:49 +00:00
|
|
|
links:
|
|
|
|
- app
|
2018-06-26 01:18:40 +00:00
|
|
|
app:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
target: production
|
2018-08-09 18:12:17 +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
|
|
|
|
- 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 01:18:40 +00:00
|
|
|
volumes:
|
|
|
|
- .:/opt/node/app
|
|
|
|
- /opt/node/app/node_modules
|
|
|
|
ports:
|
|
|
|
- '8000:8000'
|
|
|
|
# - '443:443'
|
|
|
|
depends_on:
|
|
|
|
- mongo
|
2018-06-07 20:09:51 +00:00
|
|
|
volumes:
|
|
|
|
dbdata:
|