mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 01:02:17 +00:00
script
This commit is contained in:
@@ -13,7 +13,7 @@ services:
|
|||||||
condition: "service_healthy"
|
condition: "service_healthy"
|
||||||
|
|
||||||
db:
|
db:
|
||||||
restart: 'always'
|
restart: "always"
|
||||||
image: "${POSTGRES_IMAGE:-postgres:latest}"
|
image: "${POSTGRES_IMAGE:-postgres:latest}"
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_USER=zitadel
|
- 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
|
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:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready"]
|
test: ["CMD-SHELL", "pg_isready"]
|
||||||
interval: '10s'
|
interval: "10s"
|
||||||
timeout: '30s'
|
timeout: "30s"
|
||||||
retries: 5
|
retries: 5
|
||||||
start_period: '20s'
|
start_period: "20s"
|
||||||
ports:
|
ports:
|
||||||
- 5432:5432
|
- 5432:5432
|
||||||
|
|
||||||
@@ -34,10 +34,10 @@ services:
|
|||||||
image: curlimages/curl:8.00.1
|
image: curlimages/curl:8.00.1
|
||||||
command:
|
command:
|
||||||
[
|
[
|
||||||
"/bin/sh",
|
"CMD-SHELL",
|
||||||
"-c",
|
"until curl -s -o /dev/null -w '%{http_code}' http://zitadel:8080/debug/ready | grep -q 200; do sleep 5; done",
|
||||||
"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",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- zitadel
|
- zitadel
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user