fixed deploy/run task issue

This commit is contained in:
Marvin Zhang
2019-03-02 09:37:55 +08:00
parent f3ff0a464a
commit 307a1872f1
10 changed files with 125 additions and 33 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"