-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (36 loc) · 1.04 KB
/
docker-compose.yml
File metadata and controls
40 lines (36 loc) · 1.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
services:
api:
build: ./api
image: "ghcr.io/forallsecure-customersolutions/mayhem-demo/api:${SHA:-latest}"
ports:
- "8443:8443"
depends_on:
- redis
healthcheck:
test: ["CMD", "curl", "-f", "-k", "https://localhost:8443/health"]
interval: 3600s # Check only once per hour after startup
timeout: 3s # Keep timeout short for quick response
retries: 1 # Fail fast if needed
start_period: 5s # Give API time to start
ui:
build: ./ui
image: "ghcr.io/forallsecure-customersolutions/mayhem-demo/ui:${SHA:-latest}"
ports:
- "3000:3000"
depends_on:
api:
condition: service_healthy
redis:
image: "redis:latest"
ports:
- "6379:6379"
tmpfs: # Override redis's default anonymous volume mount.
- /data
car:
platform: linux/amd64
build: ./car
image: "ghcr.io/forallsecure-customersolutions/mayhem-demo/car:${SHA:-latest}"
command: "make upload"
depends_on:
api:
condition: service_healthy