mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
33 lines
751 B
YAML
33 lines
751 B
YAML
version: '3.3'
|
|
services:
|
|
master:
|
|
image: "tikazyq/crawlab:develop"
|
|
environment:
|
|
CRAWLAB_API_ADDRESS: "crawlab.cn/dev/api"
|
|
CRAWLAB_BASE_URL: "/dev"
|
|
CRAWLAB_SERVER_MASTER: "Y"
|
|
CRAWLAB_MONGO_HOST: "mongo"
|
|
CRAWLAB_REDIS_ADDRESS: "redis"
|
|
CRAWLAB_LOG_PATH: "/var/logs/crawlab"
|
|
ports:
|
|
- "8090:8080" # frontend
|
|
- "8010:8000" # backend
|
|
depends_on:
|
|
- mongo
|
|
- redis
|
|
worker:
|
|
image: "tikazyq/crawlab:develop"
|
|
environment:
|
|
CRAWLAB_SERVER_MASTER: "N"
|
|
CRAWLAB_MONGO_HOST: "mongo"
|
|
CRAWLAB_REDIS_ADDRESS: "redis"
|
|
depends_on:
|
|
- mongo
|
|
- redis
|
|
mongo:
|
|
image: mongo:latest
|
|
restart: always
|
|
redis:
|
|
image: redis:latest
|
|
restart: always
|