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
6 changed files with 12 additions and 0 deletions

View File

@@ -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}'