Files
OHTU-German-learning-website/docker-compose.yml
T
6ded19a4ec 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>
2025-01-24 15:09:46 +02:00

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: