-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
31 lines (30 loc) · 899 Bytes
/
docker-compose.yml
File metadata and controls
31 lines (30 loc) · 899 Bytes
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
services:
backend:
# Image will be overridden in staging/prod; build in local
build:
context: .
dockerfile: backend/Dockerfile
# Args handled dynamically in CI/local script — defaults in Dockerfile
environment:
RECIPES_DIRECTORY: /recipes
RESUME_FILE: /resume/resume.md
RATINGS_FILE: /ratings/ratings.json
BACKEND_PORT: 3000
healthcheck:
test: ["CMD", "deno", "eval", "fetch('http://localhost:3000/health').then(r=>{if(!r.ok)Deno.exit(1)})"]
interval: 10s
timeout: 3s
retries: 5
frontend:
# Image will be overridden in staging/prod; build in local
build:
context: .
dockerfile: frontend/Dockerfile
depends_on:
backend:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost"]
interval: 10s
timeout: 3s
retries: 5