Is it possible to run a database like dgraph on fly.io? Their guide looks simple, but i don’t know how to do the networking part.
It all boils down to configuring 2 fly apps based on these commands below, which is easy,
App 1:
docker run -it -p 5080:5080 --network dgraph_default -p 6080:6080 -v ~/zero:/dgraph dgraph/dgraph:v21.12.0 dgraph zero --my=$ZERO_IP_ADDRESS:5080
App 2:
docker run -it -p 7080:7080 --network dgraph_default -p 8080:8080 -p 9080:9080 -v ~/server1:/dgraph dgraph/dgraph:v21.12.0 dgraph alpha --zero=$ZERO_IP_ADDRESS:5080 --my=$ALPHA_IP_ADDRESS:7080
But what I don’t know how to do is figuring out the $ZERO_IP_ADDRESS
and $ALPHA_IP_ADDRESS
at run time.
Any ideas?