File tree Expand file tree Collapse file tree 3 files changed +4
-9
lines changed
Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
33if [ " $MAXKB_DB_HOST " = " 127.0.0.1" ]; then
4- echo " PostgreSQL starting..."
54 /usr/bin/start-postgres.sh
6- echo " PostgreSQL started."
75fi
86
9-
107if [ " $MAXKB_REDIS_HOST " = " 127.0.0.1" ]; then
11- echo " Redis starting..."
128 /usr/bin/start-redis.sh
13- echo " Redis started."
149fi
1510
1611/usr/bin/start-maxkb.sh
Original file line number Diff line number Diff line change 11#! /bin/bash
22
33mkdir -p /opt/maxkb/data/postgresql
4-
4+ echo " PostgreSQL starting... "
55docker-entrypoint.sh postgres -c max_connections=${POSTGRES_MAX_CONNECTIONS} &
66sleep 10
7- /usr/bin/wait-for-it.sh 127.0.0.1:5432 --timeout=120 --strict
7+ /usr/bin/wait-for-it.sh 127.0.0.1:5432 --timeout=120 --strict -- echo " PostgreSQL started. "
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ if [ ! -f /opt/maxkb/conf/redis.conf ]; then
77 touch /opt/maxkb/conf/redis.conf
88 printf " bind 0.0.0.0\nport 6379\nmaxmemory 1G\nmaxmemory-policy allkeys-lru\ndir /opt/maxkb/data/redis\nrequirepass " ${REDIS_PASSWORD} " \n" > /opt/maxkb/conf/redis.conf
99fi
10-
10+ echo " Redis starting... "
1111redis-server /opt/maxkb/conf/redis.conf &
1212sleep 5
13- /usr/bin/wait-for-it.sh 127.0.0.1:6379 --timeout=60 --strict
13+ /usr/bin/wait-for-it.sh 127.0.0.1:6379 --timeout=60 --strict -- echo " Redis started. "
You can’t perform that action at this time.
0 commit comments