Skip to content

Native Image: Overwrite configuration settings #8109

Answered by alvarosanchez
saw303 asked this question in Q&A
Discussion options

You must be logged in to vote

You can pass properties as environment variables:

version: "3.9"
services:
  temposec:
    image: ghcr.io/onstructive/tempo-security/tempo-security:0.2.25-native
    environment:
      MICRONAUT_HTTP_SERVICES_TEMPOSEC_URL: http://host.docker.internal:8090
      ....

I believe this is more readable than a multi-line string variable.

Alternatively, you can set the MICRONAUT_CONFIG_FILES env variable to a local file, and include all the configuration there.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@saw303
Comment options

Answer selected by saw303
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants