Skip to content

Conversation

@devarsh10
Copy link
Contributor

This PR addresses #17613

Added documentation for using inline Docker configs as an alternative to bind mounts when deploying Prometheus with Docker Compose.

This approach is particularly useful when deploying to remote Docker hosts, as it eliminates the need to manually manage configuration files on the host filesystem. All configuration is embedded in the docker-compose.yml file.

Key additions:

  • Complete example using Docker's configs feature
  • Required uid, gid, and mode parameters (with explanation of the error users encounter if omitted)
  • Guidance on finding correct UID/GID values for different images
  • Use cases for when this approach is beneficial

Signed-off-by: Devarsh <devarshshah2608@gmail.com>
Signed-off-by: Devarsh <devarshshah2608@gmail.com>
Copy link

@divStar divStar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Especially the config block configuration looks exactly like what my experience setting it up was. Thank you!

@devarsh10
Copy link
Contributor Author

Especially the config block configuration looks exactly like what my experience setting it up was. Thank you!

Thank you.

Copy link
Contributor

@jan--f jan--f left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this looks good to me.

@jan--f jan--f merged commit a0d6fcb into prometheus:main Jan 13, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants