Initial commit: waitlist microservice
Some checks failed
Test & Deploy Waitlist / test (push) Failing after 44s
Test & Deploy Waitlist / deploy (push) Has been skipped

This commit is contained in:
Roberto Musso
2026-04-11 10:35:53 +02:00
commit 4b2fefcf92
22 changed files with 841 additions and 0 deletions

32
docker-compose.yml Normal file
View File

@@ -0,0 +1,32 @@
services:
db:
image: postgres:16-alpine
environment:
POSTGRES_USER: waitlist
POSTGRES_PASSWORD: changeme
POSTGRES_DB: waitlist_db
ports:
- "5433:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U waitlist -d waitlist_db"]
interval: 5s
timeout: 3s
retries: 5
app:
build: .
ports:
- "8001:8001"
environment:
DATABASE_URL: postgresql+asyncpg://waitlist:changeme@db:5432/waitlist_db
ALLOWED_ORIGINS: https://adiuvai.com,https://www.adiuvai.com
RATE_LIMIT_PER_MINUTE: 5
ENVIRONMENT: production
depends_on:
db:
condition: service_healthy
volumes:
pgdata: