Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions docker/deploy/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,25 @@ services:
- meteroid_net
logging: *logging

# Ensure clickhouse_coordination folders are setup with the correct user permissions
# clickhouse-server seems to use uid:gid -> 101:101, and default volume permissions are based on root
clickhouse-volume-init:
image: alpine:3.21
user: root
command:
- sh
- -c
- mkdir -p /coordination/log /coordination/snapshots && chown -R 101:101
/coordination
volumes:
- clickhouse_coordination:/coordination
restart: "no"
logging: *logging

Comment thread
azhur marked this conversation as resolved.
clickhouse:
depends_on:
clickhouse-volume-init:
condition: service_completed_successfully
image: clickhouse/clickhouse-server:25.6.2-alpine
ports:
- 8123:8123
Expand Down Expand Up @@ -223,6 +241,7 @@ services:
environment:
- INTERNAL_API_SECRET=${INTERNAL_API_SECRET}
- METERING_API_LISTEN_ADDRESS=0.0.0.0:50062
- METEROID_API_EXTERNAL_URL=http://meteroid-api:50061
- KAFKA_BOOTSTRAP_SERVERS=redpanda:29092
- KAFKA_RAW_TOPIC=${KAFKA_RAW_TOPIC:-meteroid-events-raw}
- CLICKHOUSE_DATABASE=${CLICKHOUSE_DATABASE:-meteroid}
Expand Down
7 changes: 7 additions & 0 deletions docker/deploy/volume/clickhouse/config.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<clickhouse>
<!-- Ensure clickhouse logs errors to stdout, instad of to an error file. Error files in exited containers are difficult to debug -->
<!-- Uncomment to enable logging to stdout for debugging -->
<!-- logger>
<log>/dev/null</log>
<errorlog>/dev/null</errorlog>
<console>1</console>
</logger -->
<!-- Embedded Keeper (single node, no separate ZooKeeper needed) -->
<keeper_server>
<tcp_port>9181</tcp_port>
Expand Down
Loading