teufa/compose.yml

34 lines
727 B
YAML
Raw Normal View History

2025-01-11 16:36:20 -07:00
services:
2025-01-12 07:29:53 -07:00
api:
2025-01-11 16:36:20 -07:00
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
2025-01-12 13:09:43 -07:00
command: teufa alembic upgrade head
2025-01-11 16:36:20 -07:00
environment:
DATABASE_URL: postgresql+psycopg://postgres:changeme@db:5432/postgres
2025-01-12 07:29:53 -07:00
depends_on:
- db