expressCart/docker-compose.yml

27 lines
496 B
YAML
Raw Normal View History

2018-02-05 23:29:16 +10:00
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:
2018-02-06 00:02:58 +10:00
image: mongo:3.4.10
2018-02-05 23:29:16 +10:00
container_name: "mongodb"
2018-02-06 00:02:58 +10:00
ports:
- 27017
2018-02-05 23:29:16 +10:00
volumes:
2018-02-06 00:02:58 +10:00
- mongo-data:/data/db
2018-02-05 23:29:16 +10:00
ports:
2018-02-06 00:02:58 +10:00
- 27017:27017
command: mongod --smallfiles --logpath=/dev/null
volumes:
mongo-data: