代码拉取完成,页面将自动刷新
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。