39 lines
825 B
YAML
39 lines
825 B
YAML
services:
|
|
db:
|
|
build:
|
|
context: ./db
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "5432:5432"
|
|
environment:
|
|
- POSTGRES_USER=frangipane
|
|
- POSTGRES_PASSWORD=secret
|
|
- POSTGRES_DB=frangipane
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U frangipane -d frangipane"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
app:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
ports:
|
|
- "8080:8080"
|
|
environment:
|
|
- FRANGIPANE_JWT_SECRET=43aaf85b92f1ae6fbcef7732c50a0904
|
|
- RUST_LOG=frangipane=debug,tower_http=debug
|
|
volumes:
|
|
- app_data:/var/lib/frangipane
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
postgres_data:
|
|
app_data:
|