Skip to content

Instantly share code, notes, and snippets.

@cjus
Created August 28, 2020 12:59
Show Gist options
  • Save cjus/69e2821babdb8bad80dcf7c2b89a5c13 to your computer and use it in GitHub Desktop.
Save cjus/69e2821babdb8bad80dcf7c2b89a5c13 to your computer and use it in GitHub Desktop.
Hydra service - simple startup
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