compose: add ability to override image versions

Useful for local development, overriding to latest is possible now
without changing the compose file itself.
This commit is contained in:
Saúl Ibarra Corretgé 2022-06-10 13:14:46 +02:00
parent 7c29b57914
commit 1463df4c09
5 changed files with 22 additions and 16 deletions

View File

@ -3,8 +3,8 @@ version: '3'
services:
# Frontend
web:
image: jitsi/web:unstable
restart: ${RESTART_POLICY}
image: jitsi/web:${JITSI_IMAGE_VERSION:-unstable}
restart: ${RESTART_POLICY:-unless-stopped}
ports:
- '${HTTP_PORT}:80'
- '${HTTPS_PORT}:443'
@ -140,8 +140,8 @@ services:
# XMPP server
prosody:
image: jitsi/prosody:unstable
restart: ${RESTART_POLICY}
image: jitsi/prosody:${JITSI_IMAGE_VERSION:-unstable}
restart: ${RESTART_POLICY:-unless-stopped}
expose:
- '${XMPP_PORT:-5222}'
- '5347'
@ -225,8 +225,8 @@ services:
# Focus component
jicofo:
image: jitsi/jicofo:unstable
restart: ${RESTART_POLICY}
image: jitsi/jicofo:${JITSI_IMAGE_VERSION:-unstable}
restart: ${RESTART_POLICY:-unless-stopped}
volumes:
- ${CONFIG}/jicofo:/config:Z
environment:
@ -275,8 +275,8 @@ services:
# Video bridge
jvb:
image: jitsi/jvb:unstable
restart: ${RESTART_POLICY}
image: jitsi/jvb:${JITSI_IMAGE_VERSION:-unstable}
restart: ${RESTART_POLICY:-unless-stopped}
ports:
- '${JVB_PORT:-10000}:${JVB_PORT:-10000}/udp'
- '127.0.0.1:${JVB_COLIBRI_PORT:-8080}:8080'

View File

@ -177,9 +177,6 @@ ETHERPAD_SKIN_VARIANTS="super-light-toolbar super-light-editor light-background
# Wether to use starttls, implies LDAPv3 and requires ldap:// instead of ldaps://
# LDAP_START_TLS=1
# Container restart policy
RESTART_POLICY=unless-stopped
#
# Security
@ -206,3 +203,12 @@ JIBRI_RECORDER_PASSWORD=
# XMPP password for Jibri client connections
JIBRI_XMPP_PASSWORD=
#
# Docker Compose options
#
# Container restart policy
#RESTART_POLICY=unless-stopped
# Jitsi image version (useful for local development)
#JITSI_IMAGE_VERSION=latest

View File

@ -4,7 +4,7 @@ services:
# Etherpad: real-time collaborative document editing
etherpad:
image: etherpad/etherpad:1.8.6
restart: ${RESTART_POLICY}
restart: ${RESTART_POLICY:-unless-stopped}
environment:
- TITLE=${ETHERPAD_TITLE}
- DEFAULT_PAD_TEXT=${ETHERPAD_DEFAULT_PAD_TEXT}

View File

@ -2,8 +2,8 @@ version: '3'
services:
jibri:
image: jitsi/jibri:unstable
restart: ${RESTART_POLICY}
image: jitsi/jibri:${JITSI_IMAGE_VERSION:-unstable}
restart: ${RESTART_POLICY:-unless-stopped}
volumes:
- ${CONFIG}/jibri:/config:Z
- /dev/shm:/dev/shm

View File

@ -3,8 +3,8 @@ version: '3'
services:
# SIP gateway (audio)
jigasi:
image: jitsi/jigasi:unstable
restart: ${RESTART_POLICY}
image: jitsi/jigasi:${JITSI_IMAGE_VERSION:-unstable}
restart: ${RESTART_POLICY:-unless-stopped}
ports:
- '${JIGASI_PORT_MIN:-20000}-${JIGASI_PORT_MAX:-20050}:${JIGASI_PORT_MIN:-20000}-${JIGASI_PORT_MAX:-20050}/udp'
volumes: