lookyloo/docker-compose.yml

39 lines
760 B
YAML
Raw Normal View History

version: '3'
services:
2019-11-02 05:05:08 +01:00
redis:
image: redis
2019-11-02 05:05:08 +01:00
working_dir: /cache
command: ./cache.conf --daemonize no
volumes:
- ./cache:/cache
splash:
image: "scrapinghub/splash"
2019-11-02 05:05:08 +01:00
ports:
- "8050:8050"
- "5023:5023"
2020-01-21 17:39:18 +01:00
command: --disable-private-mode
2019-11-02 05:05:08 +01:00
lookyloo:
2019-11-02 05:05:08 +01:00
build: .
working_dir: /lookyloo
tty: true
environment:
- SPLASH_URL=http://splash:8050
command:
- /bin/sh
- -c
- |
2020-01-21 17:39:18 +01:00
poetry run async_scrape.py &
poetry run start_website.py
2019-11-02 05:05:08 +01:00
volumes:
- ./cache:/lookyloo/cache
- ./scraped:/lookyloo/scraped
- ./user_agents:/lookyloo/user_agents
ports:
- "5100:5100"
links:
- "redis"
- "splash"