p5.js-web-editor/docker-compose.yml

41 lines
764 B
YAML
Raw Normal View History

version: '3.4'
services:
mongo:
image: mongo:3.4
volumes:
- dbdata:/data/db
- "$PWD/mongo/:/docker-entrypoint-initdb.d/"
expose:
- "27017"
ports:
- '27017:27017'
2018-06-25 23:13:31 +00:00
# restart: always
2018-06-26 21:50:21 +00:00
# env_file:
# - .env
nginx:
build: ./nginx
ports:
- '80:80'
app:
build:
context: .
dockerfile: Dockerfile
target: production
2018-06-26 21:50:21 +00:00
# env_file:
# - .env
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
volumes:
dbdata: