Backend API: auth, projects/images/annotations, R2 presign, tracing, thumbnails, pagination, tests, docs
This commit is contained in:
parent
5c5deed2f5
commit
f8ed08b854
49 changed files with 2626 additions and 0 deletions
26
docker-compose.yml
Normal file
26
docker-compose.yml
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
services:
|
||||
postgres:
|
||||
image: postgres:16-alpine
|
||||
environment:
|
||||
POSTGRES_USER: danable
|
||||
POSTGRES_PASSWORD: danable
|
||||
POSTGRES_DB: danable
|
||||
ports: ["5432:5432"]
|
||||
volumes: [pgdata:/var/lib/postgresql/data]
|
||||
|
||||
redis:
|
||||
image: redis:7-alpine
|
||||
ports: ["6379:6379"]
|
||||
|
||||
api:
|
||||
build: .
|
||||
env_file: .env
|
||||
environment:
|
||||
DATABASE_URL: postgresql+asyncpg://danable:danable@postgres:5432/danable
|
||||
REDIS_URL: redis://redis:6379/0
|
||||
ports: ["8000:8000"]
|
||||
depends_on: [postgres, redis]
|
||||
command: uvicorn src.main:app --host 0.0.0.0 --port 8000 --reload
|
||||
|
||||
volumes:
|
||||
pgdata: {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue