From c36d7c836f18651302c5666914d82362954455f8 Mon Sep 17 00:00:00 2001 From: Jeremy Denquin Date: Fri, 16 Feb 2024 15:24:39 +0100 Subject: [PATCH] misc(sso): Add boxyHQ for dev --- api | 2 +- docker-compose.dev.yml | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/api b/api index 4c2e135..ff40623 160000 --- a/api +++ b/api @@ -1 +1 @@ -Subproject commit 4c2e135865d4efa099bd72e7951e2e42a12f70fc +Subproject commit ff40623c0a3c1d95592efa24bb961ad299ce2d8d diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index b7453cf..8ef78a2 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -107,6 +107,8 @@ services: - SIDEKIQ_EVENTS=true - LAGO_CLICKHOUSE_ENABLED=true - LAGO_KAFKA_BOOTSTRAP_SERVERS=redpanda:9092 + - LAGO_KAFKA_RAW_EVENTS_TOPIC=events-raw + - LAGO_KAFKA_CLICKHOUSE_CONSUMER_GROUP=clickhouse-consumer labels: - "traefik.enable=true" - "traefik.http.routers.api_http.rule=Host(`api.lago.dev`)" @@ -147,6 +149,7 @@ services: - SIDEKIQ_EVENTS=true - LAGO_CLICKHOUSE_ENABLED=true - LAGO_KAFKA_BOOTSTRAP_SERVERS=redpanda:9092 + - LAGO_KAFKA_EVENTS_RAW_TOPIC=events-raw api-events-worker: image: api @@ -316,3 +319,23 @@ services: /usr/bin/mc policy set public lagominio/clickhouse; exit 0; " + + oauth: + image: boxyhq/jackson:1.18.7 + ports: + - 5225:5225 + environment: + DB_ENGINE: sql + DB_TYPE: postgres + DB_URL: postgres://lago:changeme@db:5432/lago + NEXTAUTH_URL: https://oauth.lago.dev + EXTERNAL_URL: https://oauth.lago.dev + NEXTAUTH_SECRET: secret + NEXTAUTH_ADMIN_CREDENTIALS: oauth@getlago.com:sso + JACKSON_API_KEYS: secret + labels: + - "traefik.enable=true" + - "traefik.http.routers.oauth.rule=Host(`oauth.lago.dev`)" + - "traefik.http.routers.oauth.entrypoints=websecure" + - "traefik.http.routers.oauth.tls=true" + - "traefik.http.services.oauth.loadbalancer.server.port=5225" \ No newline at end of file