Gitea hook is localhost not actual server address

Hello,

I have on my machine running gitea and want to install drone.
To have a nice management I am using docker-compose.
My docker-compose file looks like this:

version: '2'

services:
        drone-server:
                image: drone/drone:latest
                ports:
                        - 8000:80
                volumes:
                        - ./drone/:/data
                        - /var/run/docker.sock:/var/run/docker.sock
                restart: always
                environment:
                        - DRONE_OPEN=true
                        - DRONE_ADMIN=<my admin>
                        - DRONE_HOST=drone<.mydomain.de>
                        - DRONE_GITEA_SERVER=https://gitea<.mydomain.de>
                        - DRONE_SERVER_PROTO=https

I have replace the with the actual account and domain.
Up to here everything works just fine. I can see my repos in the drone webgui and I can activate them.

When I do that a hook is created in the gitea repo.
However this hook points to localhost. “https://localhost/hook?secret=”.
I wonder how I can force gitea to use my drone<.mydomain.de> domain as a hook?

Thanks in advance,
Arwed

Found the variable:
You must set DRONE_SYSTEM_HOST=drone<.mydomain.de>