mirror of
https://github.com/OHTU-German-learning-website/OHTU-German-learning-website.git
synced 2026-10-12 19:13:51 +03:00
* 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>
20 lines
451 B
YAML
20 lines
451 B
YAML
version: "3.6"
|
|
services:
|
|
db:
|
|
image: postgres:15
|
|
container_name: gradesa-db
|
|
environment:
|
|
POSTGRES_PASSWORD: password
|
|
volumes:
|
|
- pg-data:/var/lib/postgresql/data/
|
|
- ./provision_db.sql:/docker-entrypoint-initdb.d/1_provision_db.sql
|
|
restart: unless-stopped
|
|
ports:
|
|
- "6543:5432"
|
|
healthcheck:
|
|
test: ["CMD", "pg_isready", "-U", "postgres"]
|
|
interval: 10s
|
|
retries: 20
|
|
volumes:
|
|
pg-data:
|