expressCart/docker-compose.yml

27 lines
496 B
YAML

version: '3'
services:
expresscart:
image: "node:8"
build: .
container_name: "expresscart"
environment:
NODE_ENV: development
NODE_PATH: /
ports:
- "1111:1111"
links:
- mongodb
depends_on:
- mongodb
mongodb:
image: mongo:3.4.10
container_name: "mongodb"
ports:
- 27017
volumes:
- mongo-data:/data/db
ports:
- 27017:27017
command: mongod --smallfiles --logpath=/dev/null
volumes:
mongo-data: