"How to change a e.g. JDBC URI in the configuration of a Java EE application server running in docker and staged environment?"...is one of the recurring airhacks.com, airhacks.io and airhacks.tv questions.
The answer is: don't change it:
Cloudy Jakarta EE and MicroProfile: Microservices, Clouds and Beyond Jakarta EE / MicroProfile airhacks workshops at MUC airport, Winter Edition
airhacks.fm the podcast:
Stay in touch: airhacks.news.