39 lines
994 B
YAML
39 lines
994 B
YAML
|
|
version: '3.9'
|
||
|
|
|
||
|
|
services:
|
||
|
|
postgres:
|
||
|
|
image: postgres:16-alpine
|
||
|
|
environment:
|
||
|
|
POSTGRES_DB: flatrender
|
||
|
|
POSTGRES_USER: postgres
|
||
|
|
POSTGRES_PASSWORD: postgres
|
||
|
|
ports:
|
||
|
|
- "5432:5432"
|
||
|
|
volumes:
|
||
|
|
- pgdata:/var/lib/postgresql/data
|
||
|
|
- ../../backend/db/migrations:/docker-entrypoint-initdb.d:ro
|
||
|
|
healthcheck:
|
||
|
|
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
||
|
|
interval: 5s
|
||
|
|
timeout: 5s
|
||
|
|
retries: 5
|
||
|
|
|
||
|
|
identity:
|
||
|
|
build:
|
||
|
|
context: .
|
||
|
|
dockerfile: Dockerfile
|
||
|
|
ports:
|
||
|
|
- "5010:8080"
|
||
|
|
environment:
|
||
|
|
ASPNETCORE_ENVIRONMENT: Development
|
||
|
|
ConnectionStrings__DefaultConnection: "Host=postgres;Port=5432;Database=flatrender;Username=postgres;Password=postgres;SearchPath=identity,public"
|
||
|
|
Jwt__Secret: "dev-jwt-secret-change-in-production-use-32-chars"
|
||
|
|
Jwt__Issuer: flatrender-identity
|
||
|
|
Jwt__Audience: flatrender
|
||
|
|
depends_on:
|
||
|
|
postgres:
|
||
|
|
condition: service_healthy
|
||
|
|
|
||
|
|
volumes:
|
||
|
|
pgdata:
|