Created
August 28, 2020 12:59
-
-
Save cjus/69e2821babdb8bad80dcf7c2b89a5c13 to your computer and use it in GitHub Desktop.
Hydra service - simple startup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HOSTIP=`echo "show State:/Network/Global/IPv4" | scutil | grep PrimaryInterface | awk '{print $3}' | xargs ifconfig | grep inet | grep -v inet6 | awk '{print $2}'` | |
echo "Host IP: ${HOSTIP}" | |
docker run -d -p 6379:6379 --rm --name redis redis:6.0.6 | |
sleep 5 | |
docker run -d -p 5353:5353 --add-host host:${HOSTIP} --rm --name hydra-router pnxtech/hydra-router:1.7.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment