Back to LanguageTool Homepage - Privacy - Imprint

Docker Networking help

Hi,

I am using a docker container to host the Lang tool.
I have built the Docker file and I am able to launch the container fine with Lang tool Java process running on the port for example 8080.
JAVA Process Command:
RUN nohup java -cp languagetool-server.jar org.languagetool.server.HTTPServer --port 8080 --allow-origin “*” --public --languageModel /en/

Now, I am using the command on the Host to make Port 8080 running in the container to listen to port 80 on my Host machine.
docker container run -d --network bridge -p 80:8080 Container-ID
The problem is that when I am checking on the Host there is no Process running on port 80.
So when my client wants to communicate with the port 8080 in the container, I am expecting that the Client will send traffic to Host on port 80 and the host will forward the traffic to the container port 8080 running the Lang Tool service.
How can I achieve this.
I am using an EC2 linux box as Host.

I got this to work.
the docker file had to be started as
CMD nohup java -cp languagetool-server.jar org.languagetool.server.HTTPServer --port 8080 --allow-origin “*” --public --languageModel /en/