An open source, non-profit web search engine
Sync docker-compose.yml with production server settings
Daoud Clarke4e6a359ece39
diff --git a/docker-compose.yml b/docker-compose.ymlindex 5955321..63b8303 100644--- a/docker-compose.yml+++ b/docker-compose.yml@@ -16,8 +16,8 @@ services:- MWMBL_CONTACT_INFO=${MWMBL_CONTACT_INFO}# Set value of ./mwmbl/crawler/env_vars.py- - CRAWLER_WORKERS=2- - CRAWLER_THREADS=20+ - CRAWLER_WORKERS=4+ - CRAWLER_THREADS=30- CRAWL_DELAY_SECONDS=0.0- PYTHONUNBUFFERED=1- REDIS_URL=redis://redis:6379@@ -28,6 +28,11 @@ services:condition: on-failuredelay: 30smax_attempts: 3+ logging:+ driver: "json-file"+ options:+ max-size: "50m"+ max-file: "3"# CPU restrictions if needed:# resources:# limits:@@ -36,6 +41,7 @@ services:redis:image: redis:alpinerestart: unless-stopped+ command: redis-server --maxmemory 2gb --maxmemory-policy allkeys-lruvolumes:- redis_data:/data