feat: add initial postgres

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2026-01-18 17:23:09 +01:00
parent 1904654a06
commit e0d6172e21
7 changed files with 1406 additions and 76 deletions

View File

@@ -0,0 +1,20 @@
services:
postgres:
image: postgres:18
environment:
POSTGRES_USER: devuser
POSTGRES_PASSWORD: devpassword
POSTGRES_DB: dev
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U devuser -d dev"]
interval: 5s
timeout: 5s
retries: 5
volumes:
- ${PWD}/fs/volumes/postgres/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
command:
- "postgres"
- "-c"
- "wal_level=logical" #required for MaterializedPostgreSQL