add db stuff

This commit is contained in:
MLH
2025-04-07 12:52:20 +02:00
parent e0faa93b78
commit 27564c3246
2 changed files with 18 additions and 1 deletions

18
docker-compose.yml Normal file
View File

@ -0,0 +1,18 @@
services:
db:
image: postgres:latest
container_name: postgresql
restart: unless-stopped
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: ttdb
ports:
- "5432:5432"
volumes:
- ./pg_data:/var/lib/postgresql/data
- ./db/init_postgres.sql:/docker-entrypoint-initdb.d/init.sql
volumes:
pg_data:
driver: local