majorly overhauled the design to now use docker-compose and postgres

This commit is contained in:
2026-02-20 02:02:23 +01:00
parent 9769f509a7
commit 7308ad541d
18 changed files with 633 additions and 256 deletions

30
docker-compose.yml Normal file
View File

@@ -0,0 +1,30 @@
services:
db:
image: postgres:17
restart: always
env_file: ./app/.env.db
ports:
- "127.0.0.1:5433:5432"
volumes:
- ./data/postgres:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
interval: 5s
timeout: 5s
retries: 5
tutortool:
build:
context: ./app
dockerfile: Dockerfile
env_file: ./app/.env.tutortool
ports:
- "127.0.0.1:5000:5000"
volumes:
- ./data/slides:/src/data/slides
- ./data/exports:/src/data/exports
- ./logs:/src/logs
depends_on:
db:
condition: service_healthy
restart: on-failure