-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
54 lines (51 loc) · 1.13 KB
/
docker-compose.dev.yml
File metadata and controls
54 lines (51 loc) · 1.13 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
services:
redis:
image: redis:7-alpine
ports:
- "6379:6379"
volumes:
- redis-data:/data
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
interval: 5s
timeout: 3s
retries: 5
backend:
image: python:3.14-slim
depends_on:
redis:
# condition: service_healthy
condition: service_started
ports:
- "8000:8000"
environment:
- PREN_PROXY_REDIS_URL=redis://redis:6379
- PREN_PROXY_DATA_PATH=/app/data
working_dir: /app
volumes:
- .:/app
- backend-venv:/app/.venv
entrypoint: [ "/bin/sh", "-c" ]
command:
- |
set -ex
pip install uv -q
uv sync --frozen
exec uv run uvicorn prompt_engineering_proxy.main:app --host 0.0.0.0 --port 8000 --reload
frontend:
image: node:24-slim
working_dir: /app
volumes:
- .:/app
- frontend-modules:/app/frontend/node_modules
entrypoint: [ "/bin/sh", "-c" ]
command:
- |
set -ex
cd frontend
npm install
exec npm run build -- --watch
volumes:
redis-data:
backend-venv:
frontend-modules: