replaced cockroach with postgres

This commit is contained in:
Iraq Jaber
2025-03-25 10:42:24 +00:00
parent cf02ec2fbc
commit 96cf271fb8
3 changed files with 34 additions and 10 deletions

View File

@@ -5,12 +5,23 @@ ExternalDomain: host.docker.internal
ExternalSecure: false
Database:
cockroach:
postgres:
# This makes the e2e config reusable with an out-of-docker zitadel process and an /etc/hosts entry
Host: host.docker.internal
EventPushConnRatio: 0.2
Host: host.docker.internal
Port: 5432
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,14 +30,15 @@ services:
db:
restart: 'always'
image: 'cockroachdb/cockroach:latest-v24.3'
command: 'start-single-node --insecure --http-addr :9090'
image: 'postgres:17-alpine'
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:9090/health?ready=1']
test: ["CMD-SHELL", "pg_isready", "-d", "zitadel", "-U", "postgres"]
interval: '10s'
timeout: '30s'
retries: 5
start_period: '20s'
ports:
- "26257:26257"
- "9090:9090"
- "5432:5432"

View File

@@ -5,12 +5,24 @@ ExternalDomain: localhost
ExternalSecure: false
Database:
cockroach:
postgres:
# This makes the e2e config reusable with an out-of-docker zitadel process and an /etc/hosts entry
Host: host.docker.internal
EventPushConnRatio: 0.2
Port: 5432
database: zitadel
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