fix docker-compose files to allow Rocket.Chat Alpine containers (not having bash installed)

This commit is contained in:
ralf 2024-05-29 08:52:36 +02:00
parent b0fc5b5ce3
commit 6e2eb07125
2 changed files with 16 additions and 2 deletions

View File

@ -228,7 +228,14 @@ services:
# Rocket.Chat server
#rocketchat:
# image: quay.io/egroupware/rocket.chat:latest
# command: bash -c 'for i in `seq 1 30`; do node main.js && s=$$? && break || s=$$?; echo "Tried $$i times. Waiting 5 secs..."; sleep 5; done; (exit $$s)'
# command: >
# sh -c
# "while true; do
# node main.js &&
# s=$$? && break || s=$$?;
# echo \"Could not reach MongoDB. Waiting 5 secs ...\";
# sleep 5;
# done; (exit $$s)"
# restart: unless-stopped
# volumes:
# - $PWD/data/default/rocketchat/uploads:/app/uploads

View File

@ -218,7 +218,14 @@ services:
# Rocket.Chat server
rocketchat:
image: rocketchat/rocket.chat:latest
command: bash -c 'for i in `seq 1 30`; do node main.js && s=$$? && break || s=$$?; echo "Tried $$i times. Waiting 5 secs..."; sleep 5; done; (exit $$s)'
command: >
sh -c
"while true; do
node main.js &&
s=$$? && break || s=$$?;
echo \"Could not reach MongoDB. Waiting 5 secs ...\";
sleep 5;
done; (exit $$s)"
restart: unless-stopped
volumes:
- $PWD/data/default/rocketchat/uploads:/app/uploads