feat(clickhouse): Add support for clickhouse migrations (#292)

This commit is contained in:
Vincent Pochet 2023-10-25 10:44:11 +02:00 committed by GitHub
parent fe961faf63
commit 1aac887a11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 5 deletions

View File

@ -105,6 +105,7 @@ services:
- LAGO_FROM_EMAIL=${LAGO_FROM_EMAIL:-noreply@getlago.com}
- 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`)"
@ -143,7 +144,8 @@ services:
- LAGO_DISABLE_SEGMENT=${LAGO_DISABLE_SEGMENT:-}
- LAGO_FROM_EMAIL=${LAGO_FROM_EMAIL:-noreply@getlago.com}
- SIDEKIQ_EVENTS=true
- LAGO_CLICKHOUSE_ENABLED=true
api-events-worker:
image: api
container_name: lago_api_events_worker
@ -170,6 +172,7 @@ services:
- LAGO_DISABLE_SEGMENT=${LAGO_DISABLE_SEGMENT:-}
- LAGO_FROM_EMAIL=${LAGO_FROM_EMAIL:-noreply@getlago.com}
- SIDEKIQ_EVENTS=true
- LAGO_CLICKHOUSE_ENABLED=true
api-clock:
image: api
@ -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
@ -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
@ -278,7 +282,7 @@ services:
ports:
- 9000:9000
- 8123:8123
minio:
image: quay.io/minio/minio
container_name: minio
@ -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:

View File

@ -12,6 +12,7 @@
<default>
<access_management>1</access_management>
<profile>default</profile>
<password>default</password>
<networks>
<ip>::/0</ip>
</networks>