fix: Improvements to docker-compose file for local deployment#1085
Open
Orange-Rabbit wants to merge 7 commits intometeroid-oss:mainfrom
Open
fix: Improvements to docker-compose file for local deployment#1085Orange-Rabbit wants to merge 7 commits intometeroid-oss:mainfrom
Orange-Rabbit wants to merge 7 commits intometeroid-oss:mainfrom
Conversation
made stdout logging not mandatory, due to high log outputs
Added clickhouse init container to setup user permissions
Supplied correct `METEROID_API_EXTERNAL_URL` to the metering-api
Orange-Rabbit
commented
Apr 21, 2026
Co-authored-by: Michael <michael.zigldrum@gmail.com>
azhur
reviewed
Apr 23, 2026
| - clickhouse_coordination:/coordination | ||
| restart: "no" | ||
| logging: *logging | ||
|
|
Contributor
There was a problem hiding this comment.
thanks for the PR @Orange-Rabbit .
do you mind addind:
depends_on:
clickhouse-volume-init:
condition: service_completed_successfully
to the clickhouse container?
Without this, init container and clickhouse could race.
Author
There was a problem hiding this comment.
sorry, took a while for me to get back around to this PR.
Didn't think of that, great idea. Added it to the PR :)
Added suggestion from PR
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
I wanted to setup meteroid locally for integration and development since I needed to send webhooks to a localhost api. I found out clickhouse and by extension the metering api wouldn't start.
It seems clickhouse runs as a specific uid:gid combination (101:101), and docker-compose volumes are setup with root permissions. I added an init container that ensures the required clickhouse folders are created with the correct user permissions.
I am using WSL2 integration with docker-desktop, though I would assume this problem exists also on native docker on linux.
Also: The metering-api was set to try to connect to the meteroid-api at
http://127.0.0:50061. Since its running in a docker network the connection should behttp://meteroid-api:50061instead.Checklist