mirror of
https://github.com/kou029w/_.git
synced 2025-01-30 22:08:02 +00:00
Kohei Watanabe
30663abe62
git-subtree-dir: redis-commander git-subtree-mainline:bb126f221e
git-subtree-split:497cb16681
8 lines
373 B
Bash
Executable file
8 lines
373 B
Bash
Executable file
#!/bin/sh
|
|
set -e
|
|
export PORT=${PORT:-8080}
|
|
REDIS_HOST=`node -p "new URL('${FLY_REDIS_CACHE_URL}').hostname"`
|
|
REDIS_PORT=`node -p "new URL('${FLY_REDIS_CACHE_URL}').port"`
|
|
REDIS_PASSWORD=`node -p "new URL('${FLY_REDIS_CACHE_URL}').password"`
|
|
export REDIS_HOST=${REDIS_HOST:-localhost} REDIS_PORT=${REDIS_PORT:-6379} REDIS_PASSWORD
|
|
/redis-commander/docker/entrypoint.sh "$@"
|