mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-16 12:58:00 +00:00
250f2344c8
# Which Problems Are Solved Add a cache implementation using Redis single mode. This does not add support for Redis Cluster or sentinel. # How the Problems Are Solved Added the `internal/cache/redis` package. All operations occur atomically, including setting of secondary indexes, using LUA scripts where needed. The [`miniredis`](https://github.com/alicebob/miniredis) package is used to run unit tests. # Additional Changes - Move connector code to `internal/cache/connector/...` and remove duplicate code from `query` and `command` packages. - Fix a missed invalidation on the restrictions projection # Additional Context Closes #8130
32 lines
833 B
YAML
32 lines
833 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
cockroach:
|
|
extends:
|
|
file: '../../../e2e/config/localhost/docker-compose.yaml'
|
|
service: 'db'
|
|
|
|
postgres:
|
|
restart: 'always'
|
|
image: 'postgres:latest'
|
|
environment:
|
|
- POSTGRES_USER=zitadel
|
|
- PGUSER=zitadel
|
|
- POSTGRES_DB=zitadel
|
|
- POSTGRES_HOST_AUTH_METHOD=trust
|
|
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:
|
|
test: ["CMD-SHELL", "pg_isready"]
|
|
interval: '10s'
|
|
timeout: '30s'
|
|
retries: 5
|
|
start_period: '20s'
|
|
ports:
|
|
- 5432:5432
|
|
|
|
cache:
|
|
restart: 'always'
|
|
image: 'redis:latest'
|
|
ports:
|
|
- 6379:6379
|