How to access EM10 via Docker from internet ?

69 views
Skip to first unread message

Andrimont

unread,
Apr 24, 2021, 4:32:32 AM4/24/21
to EnterMedia

Hello to all,
I am really lost on how to set an internet access to the EM10 set on Docker.

For other docker app as portainer, it quite easy. The command :
docker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce
gives the setting of the ports.
0.0.0.0:8000  8000/tcp 
:::8000  8000/tcp 
0.0.0.0:9000  9000/tcp 
:::9000  9000/tcp
How can we achieve that with entermedia ?

Thanks a lot for help. I realise that it might be a silly question for some of you, sorry about that.

Christopher Shanti Burkey

unread,
Apr 24, 2021, 12:13:40 PM4/24/21
to enter...@googlegroups.com
So to setup the ports there are three ways to do it.

1. Our web server runs on port 8080. So maybe Use -p 8000:8080 to setup Docker

OR 

2. Use IPTables. This can be tricky to get right. Not recommended.

OR

3. Use NGINX to proxy infront of your Dockers. This is the preferred way to do it. Here is some old docs on how: https://entermediadb.org/knowledge/9/setup-nginx-load-balancer/

--
You received this message because you are subscribed to the Google Groups "EnterMedia" group.
To unsubscribe from this group and stop receiving emails from it, send an email to entermedia+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/entermedia/db5cdc10-a7f5-4714-b7dc-92ebbc15bf53n%40googlegroups.com.

Andrimont

unread,
Apr 26, 2021, 12:38:10 AM4/26/21
to EnterMedia
Thank you Christopher for you kind answer,
I tried the 3rd way but got lost wit the 'entermedianode01' requested in this line : proxy_pass http://entermedianode01or this one upstream entermedianode01.
So may be the 1st way could be the easiest. Can I use -p 9000:9080  as the port 8000 goes nowhere in my server (might be because of https setting) ?
What is the docker command line to install the EM10 ?  
Andrimont
Reply all
Reply to author
Forward
0 new messages