2023-02-28 17:49:19 +00:00
|
|
|
version: '3.8'
|
|
|
|
|
|
|
|
services:
|
|
|
|
zitadel:
|
|
|
|
user: '$UID'
|
|
|
|
restart: 'always'
|
|
|
|
image: '${ZITADEL_IMAGE:-ghcr.io/zitadel/zitadel:latest}'
|
2023-08-10 12:21:01 +00:00
|
|
|
build:
|
|
|
|
context: ../../..
|
|
|
|
dockerfile: ./build/Dockerfile
|
|
|
|
target: artifact
|
|
|
|
cache_from:
|
|
|
|
- type=gha
|
|
|
|
cache_to:
|
|
|
|
- type=gha,mode=max
|
2023-02-28 17:49:19 +00:00
|
|
|
command: 'start-from-init --masterkey "MasterkeyNeedsToHave32Characters" --tlsMode disabled --config /zitadel.yaml --steps /zitadel.yaml'
|
|
|
|
depends_on:
|
|
|
|
db:
|
|
|
|
condition: 'service_healthy'
|
|
|
|
volumes:
|
|
|
|
- ./zitadel.yaml:/zitadel.yaml
|
|
|
|
ports:
|
|
|
|
- "8080:8080"
|
2023-08-10 12:21:01 +00:00
|
|
|
healthcheck:
|
2023-10-26 08:29:06 +00:00
|
|
|
test: ["CMD", "/app/zitadel", "ready"]
|
2023-08-10 12:21:01 +00:00
|
|
|
interval: '10s'
|
|
|
|
timeout: '5s'
|
|
|
|
retries: 5
|
|
|
|
start_period: '10s'
|
2023-02-28 17:49:19 +00:00
|
|
|
extra_hosts:
|
|
|
|
- "host.docker.internal:host-gateway"
|
|
|
|
|
|
|
|
db:
|
|
|
|
restart: 'always'
|
2023-10-25 14:20:55 +00:00
|
|
|
image: 'cockroachdb/cockroach:latest'
|
2023-02-28 17:49:19 +00:00
|
|
|
command: 'start-single-node --insecure --http-addr :9090'
|
|
|
|
healthcheck:
|
|
|
|
test: ['CMD', 'curl', '-f', 'http://localhost:9090/health?ready=1']
|
|
|
|
interval: '10s'
|
|
|
|
timeout: '30s'
|
|
|
|
retries: 5
|
|
|
|
start_period: '20s'
|
|
|
|
ports:
|
2023-03-28 22:09:06 +00:00
|
|
|
- "26257:26257"
|
2023-10-26 08:29:06 +00:00
|
|
|
- "9090:9090"
|