Add docker-compose.yml (#7966)

This commit is contained in:
Birkhoff Lee
2019-10-23 00:23:12 +08:00
committed by Barış Soner Uşaklı
parent df1efe5f96
commit 2f515bac07
2 changed files with 32 additions and 5 deletions

24
docker-compose.yml Normal file
View File

@@ -0,0 +1,24 @@
version: '3.5'
services:
node:
build: .
restart: unless-stopped
depends_on:
- db
expose:
- 4567 # use a reverse proxy like Traefik
db:
image: mongo:bionic
restart: unless-stopped
expose:
- 27017
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: root
volumes:
- mongo:/data/db
volumes:
mongo: