File tree Expand file tree Collapse file tree 3 files changed +11
-10
lines changed
Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 33set -e
44
55if [ " $MAXKB_DB_HOST " = " 127.0.0.1" ]; then
6- /usr/bin/start-postgres.sh
6+ echo " PostgreSQL starting..."
7+ /usr/bin/start-postgres.sh &
8+ sleep 10
9+ wait-for-it 127.0.0.1:5432 --timeout=120 --strict -- echo " PostgreSQL started."
710fi
811
912if [ " $MAXKB_REDIS_HOST " = " 127.0.0.1" ]; then
10- /usr/bin/start-redis.sh
13+ echo " Redis starting..."
14+ /usr/bin/start-redis.sh &
15+ sleep 5
16+ wait-for-it 127.0.0.1:6379 --timeout=60 --strict -- echo " Redis started."
1117fi
1218
1319/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- echo " PostgreSQL starting..."
5- docker-entrypoint.sh postgres -c max_connections=${POSTGRES_MAX_CONNECTIONS} &
6- sleep 10
7- wait-for-it 127.0.0.1:5432 --timeout=120 --strict -- echo " PostgreSQL started."
4+ docker-entrypoint.sh postgres -c max_connections=${POSTGRES_MAX_CONNECTIONS}
Original file line number Diff line number Diff line change @@ -7,7 +7,5 @@ if [ ! -f /opt/maxkb/conf/redis.conf ]; then
77 touch /opt/maxkb/conf/redis.conf
88 printf " bind 0.0.0.0\nport 6379\ndatabases 16\nmaxmemory 1G\nmaxmemory-policy allkeys-lru\ndir /opt/maxkb/data/redis\nrequirepass " ${REDIS_PASSWORD} " \n" > /opt/maxkb/conf/redis.conf
99fi
10- echo " Redis starting..."
11- redis-server /opt/maxkb/conf/redis.conf &
12- sleep 5
13- wait-for-it 127.0.0.1:6379 --timeout=60 --strict -- echo " Redis started."
10+
11+ redis-server /opt/maxkb/conf/redis.conf
You can’t perform that action at this time.
0 commit comments