Files
templates/blueprints/crawlab-worker/docker-compose.yml
spacewaterbear f3b96bf2d4 feat: add crawlab (#759)
* feat: add crawlab

* feat: add crawlab - re order

* feat: add crawlab - fix compose

* feat: split crawlab into worker and master
2026-07-07 17:36:04 -06:00

21 lines
564 B
YAML

version: "3.8"
services:
crawlab-worker:
image: crawlabteam/crawlab:latest
restart: unless-stopped
environment:
- CRAWLAB_NODE_MASTER=N
- CRAWLAB_GRPC_ADDRESS=${MASTER_GRPC_ADDRESS}
- CRAWLAB_FS_FILER_URL=${MASTER_FILER_URL}
volumes:
- crawlab-worker-data:/root/.crawlab
- crawlab-worker-app:/data
deploy:
resources:
limits:
cpus: "${CPU_LIMIT:-0.8}" # 0.8 will limit to 80% of CPU if one core. If 2 cores, you need to put 0.8*2=1.6
volumes:
crawlab-worker-data:
crawlab-worker-app: