forked from crawlab-team/crawlab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
35 lines (35 loc) · 1.04 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
version: '3.3'
services:
master:
image: crawlabteam/crawlab:latest
container_name: crawlab_master
environment:
CRAWLAB_SERVER_MASTER: Y
CRAWLAB_MONGO_HOST: mongo
ports:
- "8080:8080" # frontend port mapping 前端端口映射
depends_on:
- mongo
# volumes:
# - "/var/crawlab/log:/var/logs/crawlab" # log persistent 日志持久化
#worker:
# image: tikazyq/crawlab:latest
# container_name: worker
# environment:
# CRAWLAB_SERVER_MASTER: "N"
# CRAWLAB_MONGO_HOST: "mongo"
# CRAWLAB_REDIS_ADDRESS: "redis"
# depends_on:
# - mongo
# volumes:
# - "/var/crawlab/log:/var/logs/crawlab" # log persistent 日志持久化
mongo:
image: mongo:latest
#restart: always
# environment:
# MONGO_INITDB_ROOT_USERNAME: username
# MONGO_INITDB_ROOT_PASSWORD: password
# volumes:
# - "/opt/crawlab/mongo/data/db:/data/db" # make data persistent 持久化
# ports:
# - "27017:27017" # expose port to host machine 暴露接口到宿主机