I am trying to install the hasura docker image for centos on a Jelastic environment. To do so, I have written the following manifest (because it is impossible to select the tag v2.0.9.centos in the environment setup dialog (there are too many tags):
type: install
name: hasura
nodes:
- displayName: hasura
count: 1
cloudlets: 32
nodeGroup: cp
nodeType: docker
image: hasura/graphql-engine:v2.0.9.centos
Then, because I'm currently just playing around, I've opened a console on that hasura node and called
graphql-engine serve --database-url postgres://hasura_user:5W87vcvNVppTbv5AAjM4@node93849-my-env.hidora.com:5432/hasura
Now, I'd really like to access my hasura instance. The problem is that this hasura image bases on CentOS 8 and Jelastic documentation says that ports auto-redirect does not work on CentOS 8.
Hasura serves on localhost:8080. What do I have to do in my centos node to expose that port 8080 to the outside?
The question is not hasura-specific. The software deployed on CentOS could be anything serving on any port.