mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-25 02:04:06 +02:00
update scrapyd
This commit is contained in:
parent
8eac19f9f5
commit
01dc8560e1
@ -35,31 +35,31 @@ Please use this as base image for your own project.
|
||||
|
||||
```yaml
|
||||
scrapyd:
|
||||
image: vimagick/scrapyd
|
||||
image: vimagick/scrapyd:py3
|
||||
ports:
|
||||
- "6800:6800"
|
||||
volumes:
|
||||
- ./data:/var/lib/scrapyd
|
||||
- /usr/local/lib/python2.7/dist-packages
|
||||
restart: always
|
||||
- /usr/local/lib/python3.7/dist-packages
|
||||
restart: unless-stopped
|
||||
|
||||
scrapy:
|
||||
image: vimagick/scrapyd
|
||||
image: vimagick/scrapyd:py3
|
||||
command: bash
|
||||
volumes:
|
||||
- .:/code
|
||||
working_dir: /code
|
||||
restart: always
|
||||
restart: unless-stopped
|
||||
|
||||
scrapyrt:
|
||||
image: vimagick/scrapyd
|
||||
image: vimagick/scrapyd:py3
|
||||
command: scrapyrt -i 0.0.0.0 -p 9080
|
||||
ports:
|
||||
- "9080:9080"
|
||||
volumes:
|
||||
- .:/code
|
||||
working_dir: /code
|
||||
restart: always
|
||||
restart: unless-stopped
|
||||
```
|
||||
|
||||
## Run it as background-daemon for scrapyd
|
||||
@ -75,7 +75,7 @@ $ tree items
|
||||
```
|
||||
|
||||
```bash
|
||||
$ mkvirtualenv webbot
|
||||
$ mkvirtualenv -p python3 webbot
|
||||
$ pip install scrapy scrapyd-client
|
||||
|
||||
$ scrapy startproject myproject
|
||||
|
@ -5,7 +5,7 @@ scrapyd:
|
||||
volumes:
|
||||
- ./data:/var/lib/scrapyd
|
||||
- /usr/local/lib/python2.7/dist-packages
|
||||
restart: always
|
||||
restart: unless-stopped
|
||||
|
||||
scrapy:
|
||||
image: vimagick/scrapyd
|
||||
@ -13,7 +13,7 @@ scrapy:
|
||||
volumes:
|
||||
- .:/code
|
||||
working_dir: /code
|
||||
restart: always
|
||||
restart: unless-stopped
|
||||
|
||||
scrapyrt:
|
||||
image: vimagick/scrapyd
|
||||
@ -23,4 +23,4 @@ scrapyrt:
|
||||
volumes:
|
||||
- .:/code
|
||||
working_dir: /code
|
||||
restart: always
|
||||
restart: unless-stopped
|
||||
|
@ -4,5 +4,5 @@ scrapyd:
|
||||
- "6800:6800"
|
||||
volumes:
|
||||
- ./data:/var/lib/scrapyd
|
||||
- /usr/local/lib/python3.4/dist-packages
|
||||
restart: always
|
||||
- /usr/local/lib/python3.7/dist-packages
|
||||
restart: unless-stopped
|
||||
|
Loading…
Reference in New Issue
Block a user