-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
79 lines (74 loc) · 2.04 KB
/
docker-compose.yml
File metadata and controls
79 lines (74 loc) · 2.04 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: sentinel-fapi2-stack
services:
postgres:
image: postgres:17-alpine
container_name: sentinel-postgres
environment:
POSTGRES_DB: sentinel_dev
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
volumes:
- sentinel-postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d sentinel_dev"]
interval: 5s
timeout: 5s
retries: 10
keycloak:
image: quay.io/keycloak/keycloak:26.1
container_name: sentinel-keycloak
environment:
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
KC_FEATURES: dpop,par,fips:preview
KC_HEALTH_ENABLED: "true"
KC_METRICS_ENABLED: "true"
ports:
- "8443:8443"
- "8080:8080"
volumes:
- ./infra/keycloak/realms:/opt/keycloak/data/import:ro
command:
- start-dev
- --import-realm
healthcheck:
test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://localhost:8080/health/ready"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis:7.4-alpine
container_name: sentinel-redis
ports:
- "6379:6379"
command: redis-server --save "" --appendonly no
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 5
sentinel-api:
build:
context: .
dockerfile: src/Sentinel.AspNetCore/Dockerfile
container_name: sentinel-api
depends_on:
keycloak:
condition: service_healthy
postgres:
condition: service_healthy
redis:
condition: service_healthy
ports:
- "5260:8080"
environment:
ASPNETCORE_ENVIRONMENT: Development
ConnectionStrings__Redis: redis:6379
ConnectionStrings__Postgres: Host=postgres;Port=5432;Database=sentinel_dev;Username=postgres;Password=postgres
Keycloak__Authority: http://keycloak:8080/realms/sentinel
Keycloak__Audience: sentinel-api
Keycloak__RequireHttpsMetadata: "false"
volumes:
sentinel-postgres-data: