Add metadata env vars and service

This commit is contained in:
iPromKnight
2024-02-28 10:26:10 +00:00
parent 42f55318e4
commit f8d34a3b90
2 changed files with 20 additions and 2 deletions

View File

@@ -15,6 +15,12 @@ MONGODB_DB=knightcrawler
MONGODB_USER=mongo
MONGODB_PASSWORD=mongo
# Metadata
## Only used if DATA_ONCE is set to false. If true, the schedule is ignored
METADATA_DOWNLOAD_IMDB_DATA_SCHEDULE=0 0 1 * * *
## If true, the metadata will be downloaded once and then the schedule will be ignored
METADATA_DOWNLOAD_IMDB_DATA_ONCE=true
# Addon
DEBUG_MODE=false
@@ -23,13 +29,15 @@ RABBIT_URI=amqp://guest:guest@rabbitmq:5672/?heartbeat=30
QUEUE_NAME=ingested
JOB_CONCURRENCY=5
JOBS_ENABLED=true
LOG_LEVEL=info # can be debug for extra verbosity (a lot more verbosity - useful for development)
## can be debug for extra verbosity (a lot more verbosity - useful for development)
LOG_LEVEL=info
MAX_CONNECTIONS_PER_TORRENT=10
MAX_CONNECTIONS_OVERALL=100
TORRENT_TIMEOUT=30000
UDP_TRACKERS_ENABLED=true
CONSUMER_REPLICAS=3
AUTO_CREATE_AND_APPLY_MIGRATIONS=false # Fix for #66 - toggle on for development
## Fix for #66 - toggle on for development
AUTO_CREATE_AND_APPLY_MIGRATIONS=false
# Producer
RabbitMqConfiguration__Host=rabbitmq

View File

@@ -106,6 +106,16 @@ services:
networks:
- knightcrawler-network
metadata:
image: gabisonfire/knightcrawler-metadata:latest
env_file:
- .env
labels:
logging: "promtail"
<<: *knightcrawler-app
networks:
- knightcrawler-network
addon:
image: gabisonfire/knightcrawler-addon:latest
ports: