How to set a domain to ip address and port deploy Spring boot app in docker

  docker, java, spring-boot, ubuntu, webserver

I have VPS with Ubuntu 20.04. I have run a Spring boot Web app in Docker on port 8090. Right now, the website work only with ip address, example

It’s good.
But not with domain name.

I have domain

I have redirected the domain name to my server’s IP address. And I don’t know what next. I need add someting in or change sometiong in apache2?

I have created a new file


and added

<VirtualHost *:8090>

        ServerAdmin [email protected]
        DocumentRoot /home/ubuntu/app/

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

but it’s only give access by to directory.

Source: Docker Questions