add basic leader election on top of postgres
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-01-06 23:19:03 +01:00
parent 43685291b6
commit f2ef496b82
10 changed files with 114 additions and 7 deletions

View File

@@ -0,0 +1,17 @@
name: orbis
services:
postgres:
image: postgres:17
environment:
POSTGRES_DB: orbis
POSTGRES_USER: postgres
POSTGRES_PASSWORD: orbis
command: postgres -c shared_preload_libraries=pg_stat_statements -c pg_stat_statements.track=all -c max_connections=200
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5