Skip to content

Commit 4e2cec6

Browse files
authored
misc: add configurable service restart policy
1 parent 729f9d2 commit 4e2cec6

File tree

6 files changed

+12
-0
lines changed

6 files changed

+12
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,7 @@ Variable | Description | Default value
407407
`XMPP_INTERNAL_MUC_MODULES` | Custom Prosody modules for internal MUC component (comma separated) | info,alert
408408
`GLOBAL_MODULES` | Custom prosody modules to load in global configuration (comma separated) | statistics,alert
409409
`GLOBAL_CONFIG` | Custom configuration string with escaped newlines | foo = bar;\nkey = val;
410+
`RESTART_POLICY` | Container restart policy | defaults to `unless-stopped`
410411
`JICOFO_COMPONENT_SECRET` | XMPP component password for Jicofo | s3cr37
411412
`JICOFO_AUTH_USER` | XMPP user for Jicofo client connections | focus
412413
`JICOFO_AUTH_PASSWORD` | XMPP password for Jicofo client connections | passw0rd

docker-compose.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ services:
44
# Frontend
55
web:
66
image: jitsi/web
7+
restart: ${RESTART_POLICY}
78
ports:
89
- '${HTTP_PORT}:80'
910
- '${HTTPS_PORT}:443'
@@ -45,6 +46,7 @@ services:
4546
# XMPP server
4647
prosody:
4748
image: jitsi/prosody
49+
restart: ${RESTART_POLICY}
4850
expose:
4951
- '5222'
5052
- '5347'
@@ -108,6 +110,7 @@ services:
108110
# Focus component
109111
jicofo:
110112
image: jitsi/jicofo
113+
restart: ${RESTART_POLICY}
111114
volumes:
112115
- ${CONFIG}/jicofo:/config
113116
environment:
@@ -134,6 +137,7 @@ services:
134137
# Video bridge
135138
jvb:
136139
image: jitsi/jvb
140+
restart: ${RESTART_POLICY}
137141
ports:
138142
- '${JVB_PORT}:${JVB_PORT}/udp'
139143
- '${JVB_TCP_PORT}:${JVB_TCP_PORT}'

env.example

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,3 +317,7 @@ JIBRI_LOGS_DIR=/config/logs
317317
# Redirect HTTP traffic to HTTPS
318318
# Necessary for Let's Encrypt, relies on standard HTTPS port (443)
319319
#ENABLE_HTTP_REDIRECT=1
320+
321+
# Container restart policy
322+
# Defaults to unless-stopped
323+
RESTART_POLICY=unless-stopped

etherpad.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ services:
44
# Etherpad: real-time collaborative document editing
55
etherpad:
66
image: jitsi/etherpad
7+
restart: ${RESTART_POLICY}
78
networks:
89
meet.jitsi:
910
aliases:

jibri.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ version: '3'
33
services:
44
jibri:
55
image: jitsi/jibri
6+
restart: ${RESTART_POLICY}
67
volumes:
78
- ${CONFIG}/jibri:/config
89
- /dev/shm:/dev/shm

jigasi.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ services:
44
# SIP gateway (audio)
55
jigasi:
66
image: jitsi/jigasi
7+
restart: ${RESTART_POLICY}
78
ports:
89
- '${JIGASI_PORT_MIN}-${JIGASI_PORT_MAX}:${JIGASI_PORT_MIN}-${JIGASI_PORT_MAX}/udp'
910
volumes:

0 commit comments

Comments
 (0)