feat: initialize database

This commit is contained in:
Sergey Krylov 2026-03-18 06:07:56 +03:00
parent 2b2324d8fa
commit 8c043a8adb
2 changed files with 5 additions and 0 deletions

View File

@ -11,6 +11,8 @@ services:
- "${POSTGRES_PORT}:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./postgres/init.sql:/docker-entrypoint-initdb.d/init.sql:ro
networks:
- teacinema
@ -46,3 +48,4 @@ volumes:
networks:
teacinema:
external: true

2
postgres/init.sql Normal file
View File

@ -0,0 +1,2 @@
CREATE DATABASE teacinema_auth;
CREATE DATABASE teacinema_users;