1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-25 02:04:06 +02:00

update scrapyd

This commit is contained in:
kev 2020-05-26 18:24:55 +08:00
parent 8eac19f9f5
commit 01dc8560e1
3 changed files with 13 additions and 13 deletions

View File

@ -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

View File

@ -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

View File

@ -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