misc: add configurable service restart policy

This commit is contained in:
Rui Carmo 2020-04-11 18:11:07 +01:00 committed by GitHub
parent 729f9d290e
commit 4e2cec6b38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 12 additions and 0 deletions

View File

@ -407,6 +407,7 @@ Variable | Description | Default value
`XMPP_INTERNAL_MUC_MODULES` | Custom Prosody modules for internal MUC component (comma separated) | info,alert `XMPP_INTERNAL_MUC_MODULES` | Custom Prosody modules for internal MUC component (comma separated) | info,alert
`GLOBAL_MODULES` | Custom prosody modules to load in global configuration (comma separated) | statistics,alert `GLOBAL_MODULES` | Custom prosody modules to load in global configuration (comma separated) | statistics,alert
`GLOBAL_CONFIG` | Custom configuration string with escaped newlines | foo = bar;\nkey = val; `GLOBAL_CONFIG` | Custom configuration string with escaped newlines | foo = bar;\nkey = val;
`RESTART_POLICY` | Container restart policy | defaults to `unless-stopped`
`JICOFO_COMPONENT_SECRET` | XMPP component password for Jicofo | s3cr37 `JICOFO_COMPONENT_SECRET` | XMPP component password for Jicofo | s3cr37
`JICOFO_AUTH_USER` | XMPP user for Jicofo client connections | focus `JICOFO_AUTH_USER` | XMPP user for Jicofo client connections | focus
`JICOFO_AUTH_PASSWORD` | XMPP password for Jicofo client connections | passw0rd `JICOFO_AUTH_PASSWORD` | XMPP password for Jicofo client connections | passw0rd

View File

@ -4,6 +4,7 @@ services:
# Frontend # Frontend
web: web:
image: jitsi/web image: jitsi/web
restart: ${RESTART_POLICY}
ports: ports:
- '${HTTP_PORT}:80' - '${HTTP_PORT}:80'
- '${HTTPS_PORT}:443' - '${HTTPS_PORT}:443'
@ -45,6 +46,7 @@ services:
# XMPP server # XMPP server
prosody: prosody:
image: jitsi/prosody image: jitsi/prosody
restart: ${RESTART_POLICY}
expose: expose:
- '5222' - '5222'
- '5347' - '5347'
@ -108,6 +110,7 @@ services:
# Focus component # Focus component
jicofo: jicofo:
image: jitsi/jicofo image: jitsi/jicofo
restart: ${RESTART_POLICY}
volumes: volumes:
- ${CONFIG}/jicofo:/config - ${CONFIG}/jicofo:/config
environment: environment:
@ -134,6 +137,7 @@ services:
# Video bridge # Video bridge
jvb: jvb:
image: jitsi/jvb image: jitsi/jvb
restart: ${RESTART_POLICY}
ports: ports:
- '${JVB_PORT}:${JVB_PORT}/udp' - '${JVB_PORT}:${JVB_PORT}/udp'
- '${JVB_TCP_PORT}:${JVB_TCP_PORT}' - '${JVB_TCP_PORT}:${JVB_TCP_PORT}'

View File

@ -317,3 +317,7 @@ JIBRI_LOGS_DIR=/config/logs
# Redirect HTTP traffic to HTTPS # Redirect HTTP traffic to HTTPS
# Necessary for Let's Encrypt, relies on standard HTTPS port (443) # Necessary for Let's Encrypt, relies on standard HTTPS port (443)
#ENABLE_HTTP_REDIRECT=1 #ENABLE_HTTP_REDIRECT=1
# Container restart policy
# Defaults to unless-stopped
RESTART_POLICY=unless-stopped

View File

@ -4,6 +4,7 @@ services:
# Etherpad: real-time collaborative document editing # Etherpad: real-time collaborative document editing
etherpad: etherpad:
image: jitsi/etherpad image: jitsi/etherpad
restart: ${RESTART_POLICY}
networks: networks:
meet.jitsi: meet.jitsi:
aliases: aliases:

View File

@ -3,6 +3,7 @@ version: '3'
services: services:
jibri: jibri:
image: jitsi/jibri image: jitsi/jibri
restart: ${RESTART_POLICY}
volumes: volumes:
- ${CONFIG}/jibri:/config - ${CONFIG}/jibri:/config
- /dev/shm:/dev/shm - /dev/shm:/dev/shm

View File

@ -4,6 +4,7 @@ services:
# SIP gateway (audio) # SIP gateway (audio)
jigasi: jigasi:
image: jitsi/jigasi image: jitsi/jigasi
restart: ${RESTART_POLICY}
ports: ports:
- '${JIGASI_PORT_MIN}-${JIGASI_PORT_MAX}:${JIGASI_PORT_MIN}-${JIGASI_PORT_MAX}/udp' - '${JIGASI_PORT_MIN}-${JIGASI_PORT_MAX}:${JIGASI_PORT_MIN}-${JIGASI_PORT_MAX}/udp'
volumes: volumes: