Skip to content

Commit

Permalink
feat(clickhouse): Add support for clickhouse migrations (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-pochet authored Oct 25, 2023
1 parent fe961fa commit 1aac887
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
14 changes: 9 additions & 5 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ services:
- LAGO_FROM_EMAIL=${LAGO_FROM_EMAIL:[email protected]}
- LAGO_SIDEKIQ_WEB=true
- SIDEKIQ_EVENTS=true
- LAGO_CLICKHOUSE_ENABLED=true
labels:
- "traefik.enable=true"
- "traefik.http.routers.api_http.rule=Host(`api.lago.dev`)"
Expand Down Expand Up @@ -143,7 +144,8 @@ services:
- LAGO_DISABLE_SEGMENT=${LAGO_DISABLE_SEGMENT:-}
- LAGO_FROM_EMAIL=${LAGO_FROM_EMAIL:[email protected]}
- SIDEKIQ_EVENTS=true

- LAGO_CLICKHOUSE_ENABLED=true

api-events-worker:
image: api
container_name: lago_api_events_worker
Expand All @@ -170,6 +172,7 @@ services:
- LAGO_DISABLE_SEGMENT=${LAGO_DISABLE_SEGMENT:-}
- LAGO_FROM_EMAIL=${LAGO_FROM_EMAIL:[email protected]}
- SIDEKIQ_EVENTS=true
- LAGO_CLICKHOUSE_ENABLED=true

api-clock:
image: api
Expand All @@ -191,6 +194,7 @@ services:
- ENCRYPTION_KEY_DERIVATION_SALT={ENCRYPTION_KEY_DERIVATION_SALT:-your-encrpytion-derivation-salt}
- SEGMENT_WRITE_KEY=${SEGMENT_WRITE_KEY:-}
- LAGO_DISABLE_SEGMENT=${LAGO_DISABLE_SEGMENT:-}
- LAGO_CLICKHOUSE_ENABLED=true

pdf:
image: getlago/lago-gotenberg:7
Expand Down Expand Up @@ -259,7 +263,7 @@ services:
- "traefik.http.routers.console.entrypoints=websecure"
- "traefik.http.routers.console.tls=true"
- "traefik.http.services.console.loadbalancer.server.port=8080"

clickhouse:
image: clickhouse/clickhouse-server
container_name: clickhouse
Expand All @@ -278,7 +282,7 @@ services:
ports:
- 9000:9000
- 8123:8123

minio:
image: quay.io/minio/minio
container_name: minio
Expand All @@ -294,8 +298,8 @@ services:
- "traefik.http.routers.minio.rule=Host(`minio.lago.dev`)"
- "traefik.http.routers.minio.entrypoints=websecure"
- "traefik.http.routers.minio.tls=true"
- "traefik.http.services.minio.loadbalancer.server.port=10001"
- "traefik.http.services.minio.loadbalancer.server.port=10001"

miniocreatebuckets:
image: minio/mc
depends_on:
Expand Down
1 change: 1 addition & 0 deletions extra/clickhouse/users.d/users.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<default>
<access_management>1</access_management>
<profile>default</profile>
<password>default</password>
<networks>
<ip>::/0</ip>
</networks>
Expand Down

0 comments on commit 1aac887

Please sign in to comment.