From 001636f2b4d57132236baf7732325f02b24d0398 Mon Sep 17 00:00:00 2001 From: Elio Bischof Date: Wed, 26 Oct 2022 13:34:46 +0200 Subject: [PATCH] docs(deploy): fix lb example (#4615) --- .../guides/deploy/loadbalancing-example/docker-compose.yaml | 6 +++--- .../loadbalancing-example/example-zitadel-secrets.yaml | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/docs/guides/deploy/loadbalancing-example/docker-compose.yaml b/docs/docs/guides/deploy/loadbalancing-example/docker-compose.yaml index 45e8d5a5d9..a7267e19e0 100644 --- a/docs/docs/guides/deploy/loadbalancing-example/docker-compose.yaml +++ b/docs/docs/guides/deploy/loadbalancing-example/docker-compose.yaml @@ -18,7 +18,7 @@ services: image: 'ghcr.io/zitadel/zitadel:stable' command: 'start-from-init --config /example-zitadel-config.yaml --config /example-zitadel-secrets.yaml --steps /example-zitadel-init-steps.yaml --masterkey "${ZITADEL_MASTERKEY}" --tlsMode external' depends_on: - chown: + certs: condition: 'service_completed_successfully' volumes: @@ -27,10 +27,10 @@ services: - './example-zitadel-init-steps.yaml:/example-zitadel-init-steps.yaml:ro' - 'zitadel-certs:/crdb-certs:ro' - chown: + certs: image: 'cockroachdb/cockroach:v22.1.0' entrypoint: [ '/bin/bash', '-c' ] - command: [ 'cp /certs/ca.crt /zitadel-certs/ && cp /certs/client.root.crt /zitadel-certs/ && cp /certs/client.root.key /zitadel-certs/ && chown 1000:1000 /zitadel-certs/* && chmod 0400 /zitadel-certs/*' ] + command: [ 'cp /certs/* /zitadel-certs/ && cockroach cert create-client --certs-dir /zitadel-certs/ --ca-key /zitadel-certs/ca.key zitadel_user && chown 1000:1000 /zitadel-certs/*' ] volumes: - 'certs:/certs:ro' - 'zitadel-certs:/zitadel-certs:rw' diff --git a/docs/docs/guides/deploy/loadbalancing-example/example-zitadel-secrets.yaml b/docs/docs/guides/deploy/loadbalancing-example/example-zitadel-secrets.yaml index de60e62cfb..6485eef207 100644 --- a/docs/docs/guides/deploy/loadbalancing-example/example-zitadel-secrets.yaml +++ b/docs/docs/guides/deploy/loadbalancing-example/example-zitadel-secrets.yaml @@ -6,7 +6,5 @@ Database: User: # If the user doesn't exist already, it is created Username: 'zitadel_user' - Password: 'Secret_DB_User_Password' Admin: Username: 'root' - Password: ''