mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-28 18:12:16 +00:00
* improve compose * docs: installation v2 * ZITADEL_EXTERNALSECURE=true is sane * Update docs/docs/guides/installation/configuration.mdx * docs: download binaries from command line * docs: better config description * fixes * default instance * default user credentials Co-authored-by: Livio Amstutz <[email protected]>
28 lines
1.1 KiB
Plaintext
28 lines
1.1 KiB
Plaintext
## Download The CockroachDB binary
|
|
|
|
Download a `cockroach` binary as described [here](https://www.cockroachlabs.com/docs/v21.2/install-cockroachdb).
|
|
ZITADEL is tested against CockroachDB v21.2.8.
|
|
|
|
## Run CockroachDB and ZITADEL
|
|
|
|
```bash
|
|
# Run a CockroachDB instance
|
|
cockroach start-single-node --insecure --background --http-addr :9090
|
|
|
|
# Configure your environment
|
|
# Generate a master encryption key
|
|
export ZITADEL_MASTERKEY="$(tr -dc A-Za-z0-9 </dev/urandom | head -c 32)"
|
|
export ZITADEL_EXTERNALSECURE=false
|
|
export ZITADEL_EXTERNALDOMAIN=localhost
|
|
export ZITADEL_DEFAULTINSTANCE_CUSTOMDOMAIN=localhost
|
|
export MY_ARCHITECTURE="arm64"
|
|
|
|
# Download the zitadel binary
|
|
curl -s https://api.github.com/repos/zitadel/zitadel/releases/tags/v2.0.0-v2-alpha.1 | grep "browser_download_url.*zitadel_.*_darwin_${MY_ARCHITECTURE}" | cut -d '"' -f 4 | sudo wget -i - -O /usr/local/bin/zitadel && sudo chmod +x /usr/local/bin/zitadel && sudo chown $(id -u):$(id -g) /usr/local/bin/zitadel
|
|
sudo chmod +x /usr/local/bin/zitadel
|
|
sudo chown $(id -u):$(id -g) /usr/local/bin/zitadel
|
|
|
|
# Run the database and application containers
|
|
zitadel admin start-from-init --masterkeyFromEnv
|
|
```
|