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-06-27 02:13:13 +00:00
|
|
|
# env_file:
|
2018-07-03 01:08:00 +00:00
|
|
|
# - "$PWD/.env"
|
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-06-26 01:18:40 +00:00
|
|
|
app:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
target: production
|
2018-06-27 02:13:13 +00:00
|
|
|
# env_file:
|
2018-07-03 01:08:00 +00:00
|
|
|
# - "$PWD/.env"
|
2018-06-26 01:18:40 +00:00
|
|
|
environment:
|
|
|
|
- MONGO_URL=mongodb://mongo:27017/p5js-web-editor
|
|
|
|
- MONGO_HOSTNAME=mongo
|
|
|
|
# - API_URL=https://localhost/api
|
|
|
|
# - PORT=80
|
|
|
|
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:
|