-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
82 lines (79 loc) · 2.26 KB
/
Copy pathdocker-compose.yml
File metadata and controls
82 lines (79 loc) · 2.26 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
80
81
82
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
profiles: ["production", "dev"]
ports:
- "8000:8000"
volumes:
- omnivoice_data:/data
- ./runtime-registry:/app/runtime-registry:ro
# T13 — the DockerRuntimeDriver talks to the host Docker
# daemon via the unix socket. Without this mount, the
# driver can connect (`docker.from_env()`) but every
# operation fails with "host not accessible". CE-only;
# Cloud uses a Kubernetes driver (Decision 11).
- /var/run/docker.sock:/var/run/docker.sock
environment:
- DATABASE_URL=sqlite+aiosqlite:////data/omnivoice.db
- CORS_ORIGINS=["http://localhost:3000","http://frontend:3000"]
- DEBUG=false
- MINIO_ENDPOINT=minio:9000
- MINIO_ACCESS_KEY=minioadmin
- MINIO_SECRET_KEY=minioadmin
- MINIO_BUCKET=omnivoice
- MINIO_SECURE=false
# Path to the on-disk runtime-registry/ directory (mounted read-only above).
- RUNTIME_REGISTRY_PATH=/app/runtime-registry
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
depends_on:
minio:
condition: service_healthy
restart: unless-stopped
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/health').read()"]
interval: 30s
timeout: 10s
retries: 3
start_period: 120s
minio:
image: minio/minio:latest
profiles: ["production", "dev"]
command: server /data --console-address ":9001"
ports:
- "9000:9000"
- "9001:9001"
environment:
- MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin
volumes:
- minio_data:/data
restart: unless-stopped
healthcheck:
test: ["CMD", "mc", "ready", "local"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
profiles: ["production"]
ports:
- "3000:3000"
environment:
- NEXT_PUBLIC_API_URL=http://localhost:8000
depends_on:
- backend
restart: unless-stopped
volumes:
omnivoice_data:
minio_data: