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-01-17 10:16:48 +00:00
|
|
|
command: postgres -c shared_preload_libraries=pg_stat_statements -c pg_stat_statements.track=all
|
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
|