Created
January 26, 2017 09:45
-
-
Save tiancheng91/b2ccbdf8e93f5885dde4455864071860 to your computer and use it in GitHub Desktop.
pyspider docker conf
This file contains 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
version: '2' | |
services: | |
phantomjs: | |
image: 'binux/pyspider:latest' | |
command: phantomjs | |
cpu_shares: 512 | |
environment: | |
- 'EXCLUDE_PORTS=5000,23333,24444' | |
expose: | |
- '25555' | |
mem_limit: 512m | |
restart: always | |
phantomjs-lb: | |
image: 'dockercloud/haproxy:latest' | |
links: | |
- phantomjs | |
ports: | |
- '19080:80' | |
restart: always |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment