-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
46 changed files
with
1,006 additions
and
396 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
COUCHDB_USER=user | ||
COUCHDB_PASSWORD=password | ||
COUCHDB_NAME=couchdb | ||
COUCHDB_PORT_5984_TCP_ADDR=couchdb | ||
COUCHDB_PORT_5984_TCP_PORT=5984 |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"taskdb": "couchdb+taskdb://couchdb:5984", | ||
"projectdb": "couchdb+projectdb://couchdb:5984", | ||
"resultdb": "couchdb+resultdb://couchdb:5984", | ||
"message_queue": "amqp://rabbitmq:5672/%2F", | ||
"webui": { | ||
"username": "username", | ||
"password": "password", | ||
"need-auth": true | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
version: "3.7" | ||
|
||
# docker build ./ -t pyspider:latest | ||
|
||
services: | ||
rabbitmq: | ||
image: rabbitmq:alpine | ||
container_name: rabbitmq | ||
networks: | ||
- pyspider | ||
command: rabbitmq-server | ||
couchdb: | ||
image: couchdb:latest | ||
container_name: couchdb | ||
networks: | ||
- pyspider | ||
ports: | ||
- "5984:5984" | ||
env_file: .env | ||
|
||
#mysql: | ||
# image: mysql:latest | ||
# container_name: mysql | ||
# volumes: | ||
# - /tmp:/var/lib/mysql | ||
# environment: | ||
# - MYSQL_ALLOW_EMPTY_PASSWORD=yes | ||
# networks: | ||
# - pyspider | ||
# env_file: .env | ||
phantomjs: | ||
image: pyspider:latest | ||
container_name: phantomjs | ||
networks: | ||
- pyspider | ||
env_file: .env | ||
volumes: | ||
- /Users/Keith/Documents/Projects/python/python_projects/pyspider/pyspider/config_example.json:/opt/pyspider/config.json | ||
command: -c config.json phantomjs | ||
depends_on: | ||
- couchdb | ||
- rabbitmq | ||
restart: unless-stopped | ||
result: | ||
image: pyspider:latest | ||
container_name: result | ||
networks: | ||
- pyspider | ||
env_file: .env | ||
volumes: | ||
- /Users/Keith/Documents/Projects/python/python_projects/pyspider/pyspider/config_example.json:/opt/pyspider/config.json | ||
command: -c config.json result_worker | ||
depends_on: | ||
- couchdb | ||
- rabbitmq | ||
restart: unless-stopped # Sometimes we'll get a connection refused error because couchdb has yet to fully start | ||
processor: | ||
container_name: processor | ||
image: pyspider:latest | ||
networks: | ||
- pyspider | ||
env_file: .env | ||
volumes: | ||
- /Users/Keith/Documents/Projects/python/python_projects/pyspider/pyspider/config_example.json:/opt/pyspider/config.json | ||
command: -c config.json processor | ||
depends_on: | ||
- couchdb | ||
- rabbitmq | ||
restart: unless-stopped | ||
fetcher: | ||
image: pyspider:latest | ||
container_name: fetcher | ||
networks: | ||
- pyspider | ||
env_file: .env | ||
volumes: | ||
- /Users/Keith/Documents/Projects/python/python_projects/pyspider/pyspider/config_example.json:/opt/pyspider/config.json | ||
command : -c config.json fetcher | ||
depends_on: | ||
- couchdb | ||
- rabbitmq | ||
restart: unless-stopped | ||
scheduler: | ||
image: pyspider:latest | ||
container_name: scheduler | ||
networks: | ||
- pyspider | ||
env_file: .env | ||
volumes: | ||
- /Users/Keith/Documents/Projects/python/python_projects/pyspider/pyspider/config_example.json:/opt/pyspider/config.json | ||
command: -c config.json scheduler | ||
depends_on: | ||
- couchdb | ||
- rabbitmq | ||
restart: unless-stopped | ||
webui: | ||
image: pyspider:latest | ||
container_name: webui | ||
ports: | ||
- "5050:5000" | ||
networks: | ||
- pyspider | ||
env_file: .env | ||
volumes: | ||
- /Users/Keith/Documents/Projects/python/python_projects/pyspider/pyspider/config_example.json:/opt/pyspider/config.json | ||
environment: | ||
- SCHEDULER_PORT_23333_TCP_ADDR=scheduler | ||
command: -c config.json webui | ||
depends_on: | ||
- couchdb | ||
- rabbitmq | ||
restart: unless-stopped | ||
|
||
networks: | ||
pyspider: | ||
external: | ||
name: pyspider | ||
default: | ||
driver: bridge |
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
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
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
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
Empty file.
Oops, something went wrong.