mirror of
https://github.com/zoriya/vex.git
synced 2026-05-27 16:22:12 +00:00
Add db creation script
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user