fix api
This commit is contained in:
33
compose.yml
Normal file
33
compose.yml
Normal 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
|
Reference in New Issue
Block a user