mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-11 21:32:12 +00:00
script
This commit is contained in:
@@ -13,7 +13,7 @@ services:
|
||||
condition: "service_healthy"
|
||||
|
||||
db:
|
||||
restart: 'always'
|
||||
restart: "always"
|
||||
image: "${POSTGRES_IMAGE:-postgres:latest}"
|
||||
environment:
|
||||
- POSTGRES_USER=zitadel
|
||||
@@ -23,10 +23,10 @@ services:
|
||||
command: postgres -c shared_preload_libraries=pg_stat_statements -c pg_stat_statements.track=all -c shared_buffers=1GB -c work_mem=16MB -c effective_io_concurrency=100 -c wal_level=minimal -c archive_mode=off -c max_wal_senders=0
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready"]
|
||||
interval: '10s'
|
||||
timeout: '30s'
|
||||
interval: "10s"
|
||||
timeout: "30s"
|
||||
retries: 5
|
||||
start_period: '20s'
|
||||
start_period: "20s"
|
||||
ports:
|
||||
- 5432:5432
|
||||
|
||||
@@ -34,10 +34,10 @@ services:
|
||||
image: curlimages/curl:8.00.1
|
||||
command:
|
||||
[
|
||||
"/bin/sh",
|
||||
"-c",
|
||||
"i=0; while ! curl http://zitadel:8080/debug/ready && [ $$i -lt 30 ]; do sleep 1; i=$$((i+1)); done; [ $$i -eq 120 ] && exit 1 || exit 0",
|
||||
"CMD-SHELL",
|
||||
"until curl -s -o /dev/null -w '%{http_code}' http://zitadel:8080/debug/ready | grep -q 200; do sleep 5; done",
|
||||
]
|
||||
|
||||
depends_on:
|
||||
- zitadel
|
||||
|
||||
|
||||
Reference in New Issue
Block a user