Spaces:
Build error
Build error
File size: 898 Bytes
0387a1c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | services:
postgres:
image: postgres:16
environment:
POSTGRES_USER: openenv
POSTGRES_PASSWORD: openenv
POSTGRES_DB: openenv
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U openenv -d openenv"]
interval: 5s
timeout: 3s
retries: 20
redis:
image: redis:7
ports:
- "6379:6379"
api:
build: .
environment:
ENVIRONMENT: development
DATABASE_URL: postgresql+asyncpg://openenv:openenv@postgres:5432/openenv
REDIS_URL: redis://redis:6379/0
DB_AUTO_CREATE: "false"
JWT_ENABLED: "true"
JWT_SECRET_KEY: "replace-me"
TOKEN_STORE_BACKEND: redis
RATE_LIMIT_BACKEND: redis
HEALTH_CHECK_REDIS: "true"
ports:
- "8000:8000"
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_started
|