add database schema and update docker-compose for initialization

This commit is contained in:
2026-01-11 14:22:46 +00:00
parent 550bba62f7
commit c12e1f7623
2 changed files with 17 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
services:
postgres:
image: postgres:16
container_name: ethnograph-postgres
container_name: ethnograph-db
restart: unless-stopped
environment:
POSTGRES_DB: ethnograph
@@ -11,6 +11,7 @@ services:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
- ./db/sql:/docker-entrypoint-initdb.d
volumes:
pgdata: