1
0
Fork 0
mirror of https://github.com/kou029w/_.git synced 2025-01-31 06:18:07 +00:00
_/redis-commander/entrypoint.sh

9 lines
373 B
Bash
Raw Normal View History

2020-06-12 16:48:09 +09:00
#!/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 "$@"