37 lines
833 B
YAML
37 lines
833 B
YAML
version: "3.8"
|
|
|
|
services:
|
|
api:
|
|
image: code.letsbe.solutions/letsbe/hub:latest
|
|
container_name: letsbe-hub-api
|
|
environment:
|
|
- DATABASE_URL=postgresql+asyncpg://hub:hub@db:5432/hub
|
|
- ADMIN_API_KEY=${ADMIN_API_KEY:-change-me-in-production}
|
|
- DEBUG=${DEBUG:-false}
|
|
ports:
|
|
- "8200:8000"
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
restart: unless-stopped
|
|
|
|
db:
|
|
image: postgres:15-alpine
|
|
container_name: letsbe-hub-db
|
|
environment:
|
|
- POSTGRES_USER=hub
|
|
- POSTGRES_PASSWORD=hub
|
|
- POSTGRES_DB=hub
|
|
volumes:
|
|
- hub-db-data:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U hub"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
hub-db-data:
|
|
name: letsbe-hub-db
|