This code can be used to create a Docker container that can be used to redirect to a URL. You can find the corresponding image here in Docker Hub.
In order for a target to be defined, the REDIRECT_TARGET variable must be defined. This then works as follows.
docker run --name redirect -d --restart always -e REDIRECT_TARGET=https://jj-ideenschmiede.de -p 80:80 jjdevelopment/jj-redirect:latest