updated docker-compose.yml

This commit is contained in:
Marvin Zhang
2019-07-30 20:15:49 +08:00
parent bf387354e0
commit 312c565b18
4 changed files with 24 additions and 5 deletions

View File

@@ -2,8 +2,9 @@ version: '3.3'
services:
master:
image: tikazyq/crawlab:latest
container_name: crawlab
container_name: crawlab-master
environment:
CRAWLAB_API_ADDRESS: "192.168.99.100:8000"
CRAWLAB_SERVER_MASTER: "Y"
CRAWLAB_MONGO_HOST: "mongo"
CRAWLAB_REDIS_ADDRESS: "redis:6379"
@@ -13,6 +14,16 @@ services:
depends_on:
- mongo
- redis
worker:
image: tikazyq/crawlab:latest
container_name: crawlab-worker
environment:
CRAWLAB_SERVER_MASTER: "N"
CRAWLAB_MONGO_HOST: "mongo"
CRAWLAB_REDIS_ADDRESS: "redis:6379"
depends_on:
- mongo
- redis
mongo:
image: mongo:latest
restart: always