-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (44 loc) · 1.22 KB
/
docker-compose.yml
File metadata and controls
47 lines (44 loc) · 1.22 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
version: "3.9"
services:
prestart:
image: '${DOCKER_IMAGE_BACKEND?Variable not set}:${TAG-latest}'
container_name: kaapi-guardrails-prestart
entrypoint: []
build:
context: ./backend
command: bash scripts/prestart.sh
env_file:
- .env
extra_hosts:
- "host.docker.internal:host-gateway"
profiles: ["prestart"]
backend:
image: '${DOCKER_IMAGE_BACKEND?Variable not set}:${TAG-latest}'
container_name: kaapi-guardrails-backend
restart: always
build:
context: ./backend
env_file:
- .env
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- "8001:8000"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/api/v1/utils/health-check/"]
interval: 10s
timeout: 5s
retries: 5
command: >
uv run uvicorn app.main:app --host 0.0.0.0 --port 80 --reload
develop:
watch:
# Sync backend source code into container immediately on change
- action: sync
path: ./backend/app
target: /app/app
# Rebuild image if dependencies change
- action: rebuild
path: ./backend/pyproject.toml
- action: rebuild
path: ./backend/uv.lock