Skip to content

fix: Improvements to docker-compose file for local deployment#1085

Open
Orange-Rabbit wants to merge 7 commits intometeroid-oss:mainfrom
Orange-Rabbit:main
Open

fix: Improvements to docker-compose file for local deployment#1085
Orange-Rabbit wants to merge 7 commits intometeroid-oss:mainfrom
Orange-Rabbit:main

Conversation

@Orange-Rabbit
Copy link
Copy Markdown

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 be http://meteroid-api:50061 instead.

Checklist

  • The code follows the project's coding conventions and style guidelines.
  • All tests related to the changes have passed successfully.
  • Documentation has been updated to reflect the changes (if applicable).
  • All new and existing unit tests have passed.
  • I have self-reviewed my code and ensured its quality.
  • I have added/updated necessary comments to aid understanding.

made stdout logging not mandatory, due to high log outputs
Added clickhouse init container to setup user permissions
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Apr 21, 2026

CLA assistant check
All committers have signed the CLA.

Supplied correct `METEROID_API_EXTERNAL_URL` to the metering-api
Comment thread docker/deploy/volume/clickhouse/config.xml Outdated
Co-authored-by: Michael <michael.zigldrum@gmail.com>
@Orange-Rabbit Orange-Rabbit marked this pull request as ready for review April 21, 2026 20:10
@azhur azhur changed the title Improvements to docker-compose file for local deployment fix: Improvements to docker-compose file for local deployment Apr 23, 2026
- clickhouse_coordination:/coordination
restart: "no"
logging: *logging

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

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 :)

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