Add db creation script

This commit is contained in:
2024-05-04 00:05:26 +02:00
parent 5ba718be26
commit 39ede643a2
4 changed files with 44 additions and 0 deletions
+2
View File
@@ -21,6 +21,8 @@ services:
- ./.env
volumes:
- db:/var/lib/postgresql/data
- ./sql/create.sql:/docker-entrypoint-initdb.d/init.sql
command: ["postgres", "-c", "log_statement=all"]
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
interval: 5s