feat: basic db connection

This commit is contained in:
eneller
2026-03-06 00:52:27 +01:00
parent 4f206d9ad9
commit 599ed86c52
7 changed files with 100 additions and 26 deletions

17
server/compose.yml Normal file
View File

@@ -0,0 +1,17 @@
services:
postgres:
image: postgres
environment:
POSTGRES_PASSWORD: pass
ports:
- "5432:5432"
adminer:
image: adminer
restart: always
environment:
ADMINER_DEFAULT_SERVER: postgres # Automatically connect to the "postgres" service
ports:
- "8080:8080"
depends_on:
- postgres # Ensure PostgreSQL starts first