This was reported by a customer in the GitHub helm charts projects: https://github.com/jfrog/charts/issues/441
When using the OSS Artifactory Docker image, setting the DB_URL environment variable doesn't work. Even if you didn't specify the DB_HOST parameter, it will use the default DB_HOST which is set to the DB_TYPE (e.g. postgresql).
Steps to reproduce:
Run the OSS docker image:
You will see the following:
In the "Waiting for DB" line you can see that the DB_HOST is used instead of the DB_URL.
Looking at the entrypoint-docker.sh script, I found that we first set the DB_URL properly in the db.properties file, but after that we replace it with the DB_HOST (which is set to the DB_TYPE by default, which is obviously wrong for 99% of the cases). The reason for that is that unlike in the artifactory-pro image, the DB_HOST check and replace is not in an "else" clause with the DB_URL check.