rundeck / docker-zoo

196 stars 82 forks source link

build(docker): add `RUNDECK_GRAILS_URL` #27

Closed kevinadhiguna closed 2 years ago

kevinadhiguna commented 2 years ago

Background

I encountered these issues Host changes to localhost after first login and The basic example redirects to http://127.0.0.1:4440/ when running Rundeck using docker-compose.


Proposed Solution

Eventually, I added RUNDECK_GRAILS_URL in environment section of docker-compose.yml. It states RUNDECK_GRAILS_URL: localhost:4440 but pretty interchangeable with a remote IP address and a hostname such as https://mywebsite.com as well.

As the Rundeck docker configuration says, RUNDECK_GRAILS_URL controls the base URL the app will use for links, redirects, etc. This is the URL users will use to access the site.


Note

I only tested this with MySQL and PostgreSQL.


Any suggestion is appreciated.