Skip to content

Instantly share code, notes, and snippets.

@aleksas
Last active August 25, 2019 22:00
Show Gist options
  • Save aleksas/1d1b9d0ea7a8c8fa01944df27b3d6d08 to your computer and use it in GitHub Desktop.
Save aleksas/1d1b9d0ea7a8c8fa01944df27b3d6d08 to your computer and use it in GitHub Desktop.
Docker compopse for pyspider
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