How can I access my docker from the outside?

Hey,

I am new to the fabulous world of docker and star twith asking a quite noobish question I think.
But first, a little information about myself:

I am working with exist-db and plan to move it to docker. So set it up on the server, I thought and followed
this instructions. I am not importing my app, yet, as I want to familiarize with how it works, before I move towards “the cloud”.

I am running docker on a server, which i acess using Putty. I have set it up properly, even my existdb container works:
curl localhost:8080
gives me the html-output I am expecting from existDB.
However, when I attempt browsing my server:
[server-IP]/8080, I cannot access it.

I know I haven’t configured anything else yet, besides when I started the container

docker run -it -d -p 8080:8080 -p 8443:8443 --name exist existdb/existdb:latest

I think I should be able to access at least the starting page exist provides and then start creating apps, etc. (maybe setting up passwords, and limit access to a specific user)

This would be my next question:
I know that exist, normally provides all content to everyone on the same network. I can, however, restrict access to certain users only.
Does this work the same way with docker? (I cannot check, since I only have terminal access now :smiley: )

In Germany it is common to say “Thank you in advance”, I have heard that in large parts of the world this is perceived as impolite, so I’ll only thank the Germans and those people that live in countries were it is perceived as a nicety in advance.

all the best,
K

Well, I figured that port binding is the way to go.
However, I guessed that was done with the second command I posted

docker run -it -d -p 8080:8080 -p 8443:8443 --name exist existdb/existdb:latest

I cannot wrap my head around what I am missing … so any hint would really be appreciated!