axel/setup db n migrations (#29)

* setup db & migrations

* bugfixes

* README updates

* updates to readme

* not tracking .env.dev

* README update

* cleanup

* updated db logic to allow for test db

* remove unnecessary await

---------

Co-authored-by: Jukka Kuusto <38991418+jkuusto@users.noreply.github.com>
This commit is contained in:
Axel Adlercreutz
2025-01-24 15:09:46 +02:00
committed by GitHub
co-authored by Jukka Kuusto
parent c0c4d96e0d
commit 6ded19a4ec
16 changed files with 449 additions and 25 deletions
+1 -3
View File
@@ -5,8 +5,6 @@ services:
container_name: gradesa-db
environment:
POSTGRES_PASSWORD: password
POSTGRES_USER: tsoha
POSTGRES_DB: gradesa
volumes:
- pg-data:/var/lib/postgresql/data/
- ./provision_db.sql:/docker-entrypoint-initdb.d/1_provision_db.sql
@@ -14,7 +12,7 @@ services:
ports:
- "6543:5432"
healthcheck:
test: ["CMD", "pg_isready", "-U", "tsoha"]
test: ["CMD", "pg_isready", "-U", "postgres"]
interval: 10s
retries: 20
volumes: