Last active
August 25, 2019 22:00
-
-
Save aleksas/1d1b9d0ea7a8c8fa01944df27b3d6d08 to your computer and use it in GitHub Desktop.
Docker compopse for pyspider
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql: | |
image: mysql:latest | |
volumes: | |
- /data/mysql:/var/lib/mysql | |
environment: | |
- MYSQL_ALLOW_EMPTY_PASSWORD=yes | |
rabbitmq: | |
image: rabbitmq:latest | |
phantomjs: | |
image: binux/pyspider:latest | |
command: phantomjs | |
result: | |
image: binux/pyspider:latest | |
links: | |
- mysql | |
- rabbitmq | |
command: result_worker | |
processor: | |
image: binux/pyspider:latest | |
links: | |
- mysql | |
- rabbitmq | |
command: processor | |
fetcher: | |
image: binux/pyspider:latest | |
links: | |
- rabbitmq | |
- phantomjs | |
command : fetcher | |
scheduler: | |
image: binux/pyspider:latest | |
links: | |
- mysql | |
- rabbitmq | |
command: scheduler | |
webui: | |
image: binux/pyspider:latest | |
links: | |
- mysql | |
- rabbitmq | |
- scheduler | |
- phantomjs | |
command: webui | |
ports: | |
- "5000:5000" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment