Revert "replaced cockroach with postgres"

This reverts commit 96cf271fb8.
This commit is contained in:
Iraq Jaber
2025-03-25 15:35:01 +00:00
parent 96cf271fb8
commit 4bc7b0a687
3 changed files with 10 additions and 34 deletions

View File

@@ -5,23 +5,12 @@ ExternalDomain: host.docker.internal
ExternalSecure: false
Database:
postgres:
cockroach:
# This makes the e2e config reusable with an out-of-docker zitadel process and an /etc/hosts entry
Host: host.docker.internal
Port: 5432
Host: host.docker.internal
EventPushConnRatio: 0.2
MaxOpenConns: 15
MaxIdleConns: 10
Database: zitadel
User:
Username: zitadel
Password: zitadel
SSL:
Mode: disable
Admin:
Username: postgres
Password: postgres
SSL:
Mode: disable
TLS:
Enabled: false

View File

@@ -30,15 +30,14 @@ services:
db:
restart: 'always'
image: 'postgres:17-alpine'
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
image: 'cockroachdb/cockroach:latest-v24.3'
command: 'start-single-node --insecure --http-addr :9090'
healthcheck:
test: ["CMD-SHELL", "pg_isready", "-d", "zitadel", "-U", "postgres"]
test: ['CMD', 'curl', '-f', 'http://localhost:9090/health?ready=1']
interval: '10s'
timeout: '30s'
retries: 5
start_period: '20s'
ports:
- "5432:5432"
- "26257:26257"
- "9090:9090"

View File

@@ -5,24 +5,12 @@ ExternalDomain: localhost
ExternalSecure: false
Database:
postgres:
cockroach:
# This makes the e2e config reusable with an out-of-docker zitadel process and an /etc/hosts entry
Host: host.docker.internal
Port: 5432
database: zitadel
EventPushConnRatio: 0.2
MaxOpenConns: 15
MaxIdleConns: 10
Database: zitadel
User:
Username: zitadel
Password: zitadel
SSL:
Mode: disable
Admin:
Username: postgres
Password: postgres
SSL:
Mode: disable
TLS:
Enabled: false