From 828bb60302340a3fe4aedfd99a2af6c8d90a3821 Mon Sep 17 00:00:00 2001 From: t0is Date: Thu, 20 Feb 2025 15:30:17 +0100 Subject: [PATCH] edit --- docker-compose.yml | 36 ++++-------------------------------- generate-docker-compose.py | 2 +- 2 files changed, 5 insertions(+), 33 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index c76a6ec..38246da 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,41 +1,13 @@ services: - 'scanner_{''name'': ''esfandtv'', ''language'': ''en''}': + scanner_esfandtv: environment: - CHANNEL_NAME=esfandtv - CHANNEL_LANGUAGE=en - TWITCH_CLIENT_ID=a0fuj6tm5ct79clvim9816orphqkov - TWITCH_CLIENT_SECRET=h7whj3yspxgj1909sgcafx6iz1p1es - image: twitch-scanner:latest - volumes: - - ./clips:/app/clips - - ./transcripts:/app/transcripts - 'scanner_{''name'': ''herdyn'', ''language'': ''cs''}': - environment: - - CHANNEL_NAME=herdyn - - CHANNEL_LANGUAGE=cs - - TWITCH_CLIENT_ID=a0fuj6tm5ct79clvim9816orphqkov - - TWITCH_CLIENT_SECRET=h7whj3yspxgj1909sgcafx6iz1p1es - image: twitch-scanner:latest - volumes: - - ./clips:/app/clips - - ./transcripts:/app/transcripts - 'scanner_{''name'': ''kuruhs'', ''language'': ''en''}': - environment: - - CHANNEL_NAME=kuruhs - - CHANNEL_LANGUAGE=en - - TWITCH_CLIENT_ID=a0fuj6tm5ct79clvim9816orphqkov - - TWITCH_CLIENT_SECRET=h7whj3yspxgj1909sgcafx6iz1p1es - image: twitch-scanner:latest - volumes: - - ./clips:/app/clips - - ./transcripts:/app/transcripts - 'scanner_{''name'': ''marty_vole'', ''language'': ''cs''}': - environment: - - CHANNEL_NAME=marty_vole - - CHANNEL_LANGUAGE=cs - - TWITCH_CLIENT_ID=a0fuj6tm5ct79clvim9816orphqkov - - TWITCH_CLIENT_SECRET=h7whj3yspxgj1909sgcafx6iz1p1es - image: twitch-scanner:latest + build: + context: . volumes: - ./clips:/app/clips + - ./models:/app/models - ./transcripts:/app/transcripts diff --git a/generate-docker-compose.py b/generate-docker-compose.py index 31e3f5c..a0e406e 100644 --- a/generate-docker-compose.py +++ b/generate-docker-compose.py @@ -11,7 +11,7 @@ compose = { # For each channel, create a service entry for channel in channels: - service_name = f"scanner_{channel}" + service_name = f"scanner_{channel['name']}" compose["services"][service_name] = { "image": "twitch-scanner:latest", "environment": [