Skip to content

Commit

Permalink
misc: add configurable service restart policy
Browse files Browse the repository at this point in the history
  • Loading branch information
rcarmo authored Apr 11, 2020
1 parent 729f9d2 commit 4e2cec6
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ services:
# Frontend
web:
image: jitsi/web
restart: ${RESTART_POLICY}
ports:
- '${HTTP_PORT}:80'
- '${HTTPS_PORT}:443'
Expand Down Expand Up @@ -45,6 +46,7 @@ services:
# XMPP server
prosody:
image: jitsi/prosody
restart: ${RESTART_POLICY}
expose:
- '5222'
- '5347'
Expand Down Expand Up @@ -108,6 +110,7 @@ services:
# Focus component
jicofo:
image: jitsi/jicofo
restart: ${RESTART_POLICY}
volumes:
- ${CONFIG}/jicofo:/config
environment:
Expand All @@ -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}'
Expand Down
4 changes: 4 additions & 0 deletions env.example
Original file line number Diff line number Diff line change
Expand Up @@ -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 change: 1 addition & 0 deletions etherpad.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ services:
# Etherpad: real-time collaborative document editing
etherpad:
image: jitsi/etherpad
restart: ${RESTART_POLICY}
networks:
meet.jitsi:
aliases:
Expand Down
1 change: 1 addition & 0 deletions jibri.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ version: '3'
services:
jibri:
image: jitsi/jibri
restart: ${RESTART_POLICY}
volumes:
- ${CONFIG}/jibri:/config
- /dev/shm:/dev/shm
Expand Down
1 change: 1 addition & 0 deletions jigasi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 4e2cec6

Please sign in to comment.