File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ services:
1818 # Default: amd64
1919 # Possible values: amd64 or arm64
2020 - ARCH=amd64
21+ - REDIS_URL=redis://redis:6379/0
2122 postgres :
2223 image : postgres:latest
2324 environment :
Original file line number Diff line number Diff line change @@ -63,6 +63,8 @@ echo "Installing GatewayD plugins..."
6363" ${GATEWAYD_FILES} " /gatewayd plugin install --skip-path-slip-verification --output-dir " ${GATEWAYD_FILES} " --plugin-config " ${GATEWAYD_FILES} " /gatewayd_plugins.yaml --cleanup=false --update --overwrite-config || exit 126
6464
6565# Replace the default Redis URL with the Redis container URL
66- sed -i ' s/redis:\/\/localhost:6379/redis:\/\/redis:6379/' " ${GATEWAYD_FILES} " /gatewayd_plugins.yaml
66+ [ -z " ${REDIS_URL} " ] && REDIS_URL=" redis://redis:6379/0" && export REDIS_URL
67+ echo " Setting Redis URL to ${REDIS_URL} "
68+ sed -i " s#redis://localhost:6379/0#${REDIS_URL} #" " ${GATEWAYD_FILES} " /gatewayd_plugins.yaml
6769
6870echo " GatewayD ${GATEWAYD_VERSION} and plugins installed successfully. Exiting..."
You can’t perform that action at this time.
0 commit comments