Add optional configuration section

Add details about consumer replicas

Add CONSUMER_REPLICAS to .env.example

Change `consumer: deploy: replicas` to use CONSUMER_REPLICAS var to keep user config options in one file
This commit is contained in:
funkecoder23
2024-02-04 16:25:38 -05:00
parent 2593bbdb73
commit 101b5c416e
3 changed files with 13 additions and 1 deletions

View File

@@ -26,6 +26,7 @@ JOBS_ENABLED=true
MAX_SINGLE_TORRENT_CONNECTIONS=10
TORRENT_TIMEOUT=30000
UDP_TRACKERS_ENABLED=true
CONSUMER_REPLICAS=3
# Producer
RabbitMqConfiguration__Host=rabbitmq

View File

@@ -101,7 +101,7 @@ services:
labels:
logging: "promtail"
deploy:
replicas: 3
replicas: ${CONSUMER_REPLICAS}
<<: *knightcrawler-app
networks:
- knightcrawler-network