updated Jenkinsfile

This commit is contained in:
Marvin Zhang
2019-07-31 19:38:03 +08:00
parent 7d53ed7694
commit 6eecc7c0ec
3 changed files with 21 additions and 12 deletions

View File

@@ -2,14 +2,12 @@ version: '3.3'
services:
master:
image: tikazyq/crawlab:latest
container_name: crawlab-master
container_name: master
environment:
CRAWLAB_API_ADDRESS: "192.168.99.100:8000"
CRAWLAB_API_ADDRESS: "localhost:8000"
CRAWLAB_SERVER_MASTER: "Y"
CRAWLAB_MONGO_HOST: "mongo"
CRAWLAB_REDIS_ADDRESS: "redis:6379"
networks:
- host
CRAWLAB_REDIS_ADDRESS: "redis"
ports:
- "8080:8080" # frontend
- "8000:8000" # backend
@@ -18,11 +16,11 @@ services:
- redis
worker:
image: tikazyq/crawlab:latest
container_name: crawlab-worker
container_name: worker
environment:
CRAWLAB_SERVER_MASTER: "N"
CRAWLAB_MONGO_HOST: "mongo"
CRAWLAB_REDIS_ADDRESS: "redis:6379"
CRAWLAB_REDIS_ADDRESS: "redis"
depends_on:
- mongo
- redis