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

34 lines
600 B
YAML
Raw Normal View History

version: '3.4'
services:
mongo:
image: mongo:3.4.7
volumes:
- dbdata:/data/db
expose:
- "27017"
nginx:
build: ./nginx
ports:
- '80:80'
app:
2018-05-18 03:43:06 +02:00
build:
context: .
dockerfile: Dockerfile
target: production
# env_file:
# - .env
environment:
- MONGO_URL=mongodb://mongo:27017/p5js-web-editor
# - 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: