feat: add first database migration

This commit is contained in:
Schubert Ferenc 2026-07-01 21:24:20 +02:00
parent 3701c50711
commit 1f50e8bf7b
10 changed files with 311 additions and 13 deletions

View file

@ -1,5 +1,23 @@
services:
postgres:
image: postgres:17
container_name: hermes-postgres
restart: unless-stopped
environment:
POSTGRES_DB: olympus
POSTGRES_USER: olympus
POSTGRES_PASSWORD: olympus123
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
hermes:
build: .
@ -7,15 +25,16 @@ services:
restart: unless-stopped
depends_on:
- postgres
environment:
DATABASE_URL: postgresql+psycopg://olympus:olympus123@postgres:5432/olympus
APP_NAME: Hermes API
APP_VERSION: 0.1.0
ports:
- "8000:8000"
environment:
DATABASE_URL: postgresql://olympus:DEIN_PASSWORT@olympus-db:5432/olympus
networks:
- olympus-network
networks:
olympus-network:
external: true
volumes:
postgres_data: