2023-04-25 15:11:04 +00:00
|
|
|
version: '3.8'
|
|
|
|
|
|
|
|
services:
|
|
|
|
cockroach:
|
|
|
|
extends:
|
2023-05-02 16:24:24 +00:00
|
|
|
file: '../../../e2e/config/localhost/docker-compose.yaml'
|
2023-04-25 15:11:04 +00:00
|
|
|
service: 'db'
|
|
|
|
|
|
|
|
postgres:
|
|
|
|
restart: 'always'
|
2023-11-24 13:56:58 +00:00
|
|
|
image: 'postgres:latest'
|
2023-04-25 15:11:04 +00:00
|
|
|
environment:
|
|
|
|
- POSTGRES_USER=zitadel
|
|
|
|
- PGUSER=zitadel
|
|
|
|
- POSTGRES_DB=zitadel
|
|
|
|
- POSTGRES_HOST_AUTH_METHOD=trust
|
2024-09-06 12:47:57 +00:00
|
|
|
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
|
2023-04-25 15:11:04 +00:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD-SHELL", "pg_isready"]
|
|
|
|
interval: '10s'
|
|
|
|
timeout: '30s'
|
|
|
|
retries: 5
|
|
|
|
start_period: '20s'
|
|
|
|
ports:
|
|
|
|
- 5432:5432
|