From a68288efddb2acd639db722416a64ea0165a0d41 Mon Sep 17 00:00:00 2001 From: Numbuh474 <35499003+Numbuh474@users.noreply.github.com> Date: Sat, 12 Dec 2020 01:20:20 -0500 Subject: [PATCH] Update docker-compose.yml Rewrite the compose file to properly include all dependencies in the docker session --- docker-compose.yml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 5f9b6b21..90f07bbc 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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" \ No newline at end of file