updated Dockerfile

This commit is contained in:
Marvin Zhang
2019-06-06 07:11:49 +08:00
parent 665f957038
commit 19cd332f86
4 changed files with 44 additions and 26 deletions

18
docker-compose.yml Normal file
View File

@@ -0,0 +1,18 @@
version: '3.3' # 表示该 Docker-Compose 文件使用的是 Version 2 file
services:
web: # 指定服务名称
build: . # 指定 Dockerfile 所在路径
ports: # 指定端口映射
- "5001:5000"
task:
image: crawlab:v3
db:
image: mongo
restart: always
ports:
- "27017:27017"
redis:
image: redis
restart: always
ports:
- "6379:6379"