mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-03 12:52:16 +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:
@@ -0,0 +1,44 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
zitadel:
|
||||
restart: always
|
||||
networks:
|
||||
- zitadel
|
||||
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
|
||||
- ZITADEL_DEFAULTINSTANCE_CUSTOMDOMAIN=localhost
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8080/debug"]
|
||||
interval: 10s
|
||||
timeout: 30s
|
||||
retries: 5
|
||||
start_period: 40s
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
ports:
|
||||
- 8080:8080
|
||||
|
||||
db:
|
||||
restart: always
|
||||
networks:
|
||||
- zitadel
|
||||
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"]
|
||||
interval: 10s
|
||||
timeout: 30s
|
||||
retries: 5
|
||||
start_period: 20s
|
||||
ports:
|
||||
- 9090:8080
|
||||
- 26257:26257
|
||||
|
||||
networks:
|
||||
zitadel:
|
||||
Reference in New Issue
Block a user