Bladeren bron

misc: add configurable service restart policy

Rui Carmo 5 jaren geleden
bovenliggende
commit
4e2cec6
6 gewijzigde bestanden met toevoegingen van 12 en 0 verwijderingen
  1. 1 0
      README.md
  2. 4 0
      docker-compose.yml
  3. 4 0
      env.example
  4. 1 0
      etherpad.yml
  5. 1 0
      jibri.yml
  6. 1 0
      jigasi.yml

+ 1 - 0
README.md

@@ -407,6 +407,7 @@ Variable | Description | Default value
 `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_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_AUTH_USER` | XMPP user for Jicofo client connections | focus
 `JICOFO_AUTH_PASSWORD` | XMPP password for Jicofo client connections | passw0rd

+ 4 - 0
docker-compose.yml

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

+ 4 - 0
env.example

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

+ 1 - 0
etherpad.yml

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

+ 1 - 0
jibri.yml

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

+ 1 - 0
jigasi.yml

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