Jitsi: custom-config.js и finalize.sh в собственных образах web/jibri (Coolify не кладёт файлы репозитория на хост)

This commit is contained in:
crm-calls agent
2026-10-15 06:19:48 +00:00
parent 81921ed776
commit 762664bcad
3 changed files with 17 additions and 5 deletions

View File

@@ -20,7 +20,10 @@
services:
web:
image: ghcr.io/jitsi/web:${JITSI_IMAGE_VERSION:-stable-11248}
# ghcr.io/jitsi/web + jitsi/custom-config.js (voice-only), see jitsi/web.Dockerfile.
build:
context: ./jitsi
dockerfile: web.Dockerfile
restart: unless-stopped
read_only: true
tmpfs:
@@ -31,8 +34,6 @@ services:
volumes:
- jitsi-web-config:/config
- jitsi-web-storage:/storage
# Voice-only settings appended to config.js (see the file).
- ./jitsi/custom-config.js:/config/custom-config.js:ro
environment:
TZ: '${TZ:-Europe/Kyiv}'
PUBLIC_URL: '${PUBLIC_URL:-https://meet.volcanic.tes.gd}'
@@ -171,7 +172,10 @@ services:
# One recorder (MAX_CONCURRENT_CALLS=1). Started/stopped by the calls module via http://jitsi-jibri:2222.
# Minimal video (800x480, 5 fps): only the audio is kept, see jitsi/finalize.sh.
jibri:
image: ghcr.io/jitsi/jibri:${JITSI_IMAGE_VERSION:-stable-11248}
# ghcr.io/jitsi/jibri + jitsi/finalize.sh, see jitsi/jibri.Dockerfile.
build:
context: ./jitsi
dockerfile: jibri.Dockerfile
restart: unless-stopped
read_only: true
tmpfs:
@@ -182,7 +186,6 @@ services:
- jitsi-jibri-config:/config
- jitsi-jibri-storage:/storage
- '${RECORDINGS_HOST_DIR:-/data/crm-calls/recordings}:/recordings'
- ./jitsi/finalize.sh:/opt/crm-calls/finalize.sh:ro
environment:
TZ: '${TZ:-Europe/Kyiv}'
PUBLIC_URL: '${PUBLIC_URL:-https://meet.volcanic.tes.gd}'

4
jitsi/jibri.Dockerfile Normal file
View File

@@ -0,0 +1,4 @@
# Jibri + finalize-скрипт CRM Tvorymo (лише звук, відео видаляється одразу).
ARG JITSI_IMAGE_VERSION=stable-11248
FROM ghcr.io/jitsi/jibri:${JITSI_IMAGE_VERSION}
COPY --chmod=755 finalize.sh /opt/crm-calls/finalize.sh

5
jitsi/web.Dockerfile Normal file
View File

@@ -0,0 +1,5 @@
# Jitsi web + голосовий режим CRM Tvorymo: custom-config.js дописується в шаблон config.js.
ARG JITSI_IMAGE_VERSION=stable-11248
FROM ghcr.io/jitsi/web:${JITSI_IMAGE_VERSION}
COPY custom-config.js /tmp/custom-config.js
RUN cat /tmp/custom-config.js >> /defaults/settings-config.js && rm /tmp/custom-config.js