mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 03:27:32 +00:00
chore: improve docker-compose.yml (#3649)
* chore: improve docker-compose.yml * simpler compose * pass local config as variables * remove default value * localhost customdomain * update image * v2-alpha.3
This commit is contained in:
@@ -5,15 +5,13 @@ services:
|
||||
restart: always
|
||||
networks:
|
||||
- zitadel
|
||||
image: ghcr.io/zitadel/zitadel:v1.80.0-v2.20-amd64
|
||||
image: ghcr.io/zitadel/zitadel:v2.0.0-v2-alpha.3-amd64
|
||||
command: admin start-from-init --masterkeyFromEnv
|
||||
environment:
|
||||
- ZITADEL_MASTERKEY=${ZITADEL_MASTERKEY}
|
||||
- ZITADEL_DATABASE_HOST=db
|
||||
- ZITADEL_EXTERNALSECURE=false
|
||||
# TODO: Use the following variables as defaults
|
||||
- ZITADEL_EXTERNALDOMAIN=localhost
|
||||
- ZITADEL_S3DEFAULTINSTANCE_CUSTOMDOMAIN=localhost
|
||||
- ZITADEL_DEFAULTINSTANCE_CUSTOMDOMAIN=localhost
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8080/debug"]
|
||||
interval: 10s
|
||||
@@ -30,7 +28,7 @@ services:
|
||||
restart: always
|
||||
networks:
|
||||
- zitadel
|
||||
image: cockroachdb/cockroach:v21.2.8
|
||||
image: cockroachdb/cockroach:v21.2.5
|
||||
command: start-single-node --insecure --listen-addr=0.0.0.0
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8080/health?ready=1"]
|
@@ -17,7 +17,7 @@ export ZITADEL_EXTERNALDOMAIN=localhost
|
||||
export ZITADEL_DEFAULTINSTANCE_CUSTOMDOMAIN=localhost
|
||||
|
||||
# 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_.*_linux_$(dpkg --print-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
|
||||
curl -s https://api.github.com/repos/zitadel/zitadel/releases/tags/v2.0.0-v2-alpha.3 | grep "browser_download_url.*zitadel_.*_linux_$(dpkg --print-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
|
||||
|
||||
|
@@ -18,7 +18,7 @@ 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
|
||||
curl -s https://api.github.com/repos/zitadel/zitadel/releases/tags/v2.0.0-v2-alpha.3 | 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
|
||||
|
||||
|
Reference in New Issue
Block a user