Skip to content

Instantly share code, notes, and snippets.

@tiancheng91
Created January 26, 2017 09:45
Show Gist options
  • Save tiancheng91/b2ccbdf8e93f5885dde4455864071860 to your computer and use it in GitHub Desktop.
Save tiancheng91/b2ccbdf8e93f5885dde4455864071860 to your computer and use it in GitHub Desktop.
pyspider docker conf
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