This commit is contained in:
2025-01-11 16:36:20 -07:00
parent 2cc7689e8e
commit 396c25317a
4 changed files with 46 additions and 14 deletions

33
compose.yml Normal file
View File

@@ -0,0 +1,33 @@
services:
teufa:
build:
context: .
develop:
watch:
- action: sync+restart
path: .
target: /opt/app
ignore:
- .venv/
- action: rebuild
path: ./pyproject.toml
ports:
- "8000:8000"
environment:
DATABASE_URL: postgresql+psycopg://postgres:changeme@db:5432/postgres
depends_on:
- db
db:
image: postgres:16
environment:
POSTGRES_PASSWORD: changeme
POSTGRES_DB: teufa
ports:
- "5432:5432"
migrate:
image: teufa:latest
depends_on:
- db
environment:
DATABASE_URL: postgresql+psycopg://postgres:changeme@db:5432/postgres
command: alembic upgrade head