1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-08-09 15:35:29 +02:00

Hide docker-compose command to start.sh

This commit is contained in:
NavyStack 2023-12-18 14:17:09 +09:00
parent 92366fd469
commit 2f50b0e8cf
3 changed files with 11 additions and 18 deletions

View file

@ -3,14 +3,6 @@ version: '3'
services:
planka:
image: ghcr.io/plankanban/planka:dev
command: >
bash -c
"for i in `seq 1 30`; do
./start.sh &&
s=$$? && break || s=$$?;
echo \"Tried $$i times. Waiting 5 seconds...\";
sleep 5;
done; (exit $$s)"
restart: unless-stopped
volumes:
- user-avatars:/app/public/user-avatars

View file

@ -3,14 +3,6 @@ version: '3'
services:
planka:
image: ghcr.io/plankanban/planka:latest
command: >
bash -c
"for i in `seq 1 30`; do
./start.sh &&
s=$$? && break || s=$$?;
echo \"Tried $$i times. Waiting 5 seconds...\";
sleep 5;
done; (exit $$s)"
restart: unless-stopped
volumes:
- user-avatars:/app/public/user-avatars

View file

@ -1,4 +1,13 @@
#!/bin/bash
set -e
node db/init.js
exec node app.js --prod $@
for i in $(seq 1 30); do
echo "Attempting to initialize the database and start the Planka (attempt $i)..."
node db/init.js &&
exec node app.js --prod "$@" &&
break || s=$?;
echo "Failed (attempt $i). Waiting 5 seconds before the next attempt...";
sleep 5;
done
exit $s