1 Star 1 Fork 0

chiron / pyspider

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
docker-compose1.yaml 2.38 KB
一键复制 编辑 原始数据 按行查看 历史
chiron 提交于 2023-03-03 15:05 . no message
version: "3.7"
# replace /path/to/dir/ to point to config.json
# The RabbitMQ and CouchDB services can take some time to startup.
# During this time most of the pyspider services will exit and restart.
# Once RabbitMQ and CouchDB are fully up and running everything should run as normal.
services:
pyspider_abbitmq:
image: rabbitmq
container_name: pyspider_abbitmq
networks:
- pyspider
volumes:
- ./docker/rebbitmq:/var/lib/rabbitmq
command: rabbitmq-server
restart: unless-stopped
pyspider_phantomjs:
image: chiron/pyspider.slim
container_name: pyspider_phantomjs
links:
- pyspider_abbitmq
networks:
- pyspider
command: phantomjs
volumes:
- ./config.json:/opt/pyspider/config.json
command: -c config.json phantomjs
pyspider_result:
image: chiron/pyspider.slim
container_name: pyspider_result
links:
- pyspider_abbitmq
volumes:
- ./config.json:/opt/pyspider/config.json
networks:
- pyspider
command: -c config.json result_worker
restart: unless-stopped
pyspider_processor:
image: chiron/pyspider.slim
container_name: pyspider_processor
links:
- pyspider_abbitmq
volumes:
- ./config.json:/opt/pyspider/config.json
networks:
- pyspider
command: -c config.json processor
restart: unless-stopped
pyspider_fetcher:
image: chiron/pyspider.slim
container_name: pyspider_fetcher
links:
- pyspider_abbitmq
networks:
- pyspider
links:
- pyspider_phantomjs
volumes:
- ./config.json:/opt/pyspider/config.json
command: -c config.json fetcher
restart: unless-stopped
pyspider_scheduler:
image: chiron/pyspider.slim
container_name: pyspider_scheduler
links:
- pyspider_abbitmq
networks:
- pyspider
volumes:
- ./config.json:/opt/pyspider/config.json
command: -c config.json scheduler
restart: unless-stopped
pyspider_webui:
image: chiron/pyspider.slim
container_name: pyspider_webui
networks:
- pyspider
links:
- pyspider_scheduler
- pyspider_phantomjs
- pyspider_abbitmq
volumes:
- ./config.json:/opt/pyspider/config.json
command: -c config.json webui
ports:
- "5050:5000"
restart: unless-stopped
networks:
pyspider:
external:
name: pyspider
default:
driver: bridge
Python
1
https://gitee.com/hades_c/pyspider.git
git@gitee.com:hades_c/pyspider.git
hades_c
pyspider
pyspider
master

搜索帮助