Merge pull request #136 from Numbuh474/main

Update docker-compose.yml
pull/137/head
Raphaël Vinot 2020-12-12 12:04:34 +01:00 committed by GitHub
commit a4b5cd7bfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 6 deletions

View File

@ -1,13 +1,20 @@
version: '3'
services:
redis:
redis-cache:
image: redis
working_dir: /cache
command: ./cache.conf --daemonize no
volumes:
- ./cache:/cache
redis-indexing:
image: redis
working_dir: /indexing
command: ./indexing.conf --daemonize no
volumes:
- ./indexing:/indexing
splash:
image: "scrapinghub/splash:3.5.0"
ports:
@ -25,16 +32,17 @@ services:
- /bin/sh
- -c
- |
poetry run rebuild_caches.py
poetry run async_scrape.py &
poetry run start_website.py
poetry run start
tail -F ./LICENSE
volumes:
- ./cache:/lookyloo/cache
- ./indexing:/lookyloo/indexing
- ./scraped:/lookyloo/scraped
- ./user_agents:/lookyloo/user_agents
- ./config:/lookyloo/config
ports:
- "5100:5100"
links:
- "redis"
- "splash"
- "redis-cache"
- "redis-indexing"
- "splash"