Admin redirect to localhost and api using dedicated docker

Hi Everyone,
I have installed the Bitwarden Docker on my server and it works OK, Using the following image: image: bitwardenrs/server:latest
I have setup the ADMIN_TOKEN and I was able to access the /admin when using my domain
https://bw.mydomain.com/admin - After entering the Token - I got redirect to localhost with no reason.

Surely it will not work and I have been looking for answers on the net with no luck at all.
I have also read that there is an /api that I can use.

I went to Docker-Hub and saw that there are different dockers for api and admin.
to start I installed the api docker and I am not sure what I should be doing next.

I would be happy to make my /admin work as well as the /api.
Please assist.

Thanks you!
Arye

You need to configure the DOMAIN environment variable to https://bw.mydomain.com otherwise it will use localhost as default.