feat: initialize database
This commit is contained in:
parent
2b2324d8fa
commit
8c043a8adb
@ -11,6 +11,8 @@ services:
|
|||||||
- "${POSTGRES_PORT}:5432"
|
- "${POSTGRES_PORT}:5432"
|
||||||
volumes:
|
volumes:
|
||||||
- postgres_data:/var/lib/postgresql/data
|
- postgres_data:/var/lib/postgresql/data
|
||||||
|
- ./postgres/init.sql:/docker-entrypoint-initdb.d/init.sql:ro
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
- teacinema
|
- teacinema
|
||||||
|
|
||||||
@ -46,3 +48,4 @@ volumes:
|
|||||||
|
|
||||||
networks:
|
networks:
|
||||||
teacinema:
|
teacinema:
|
||||||
|
external: true
|
||||||
|
|||||||
2
postgres/init.sql
Normal file
2
postgres/init.sql
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
CREATE DATABASE teacinema_auth;
|
||||||
|
CREATE DATABASE teacinema_users;
|
||||||
Loading…
x
Reference in New Issue
Block a user