-
-
Notifications
You must be signed in to change notification settings - Fork 82
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
141 lines (137 loc) · 3.26 KB
/
docker-compose.yml
File metadata and controls
141 lines (137 loc) · 3.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
services:
background-jobs:
restart: unless-stopped
image: ghcr.io/iliashad/edit-mind-background-jobs:latest
container_name: edit-mind-background-jobs
env_file:
- .env.system
- .env
ports:
- "${BACKGROUND_JOBS_PORT}:${BACKGROUND_JOBS_PORT}"
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
chroma:
condition: service_started
ml:
condition: service_started
networks:
- app-network
volumes:
- ${HOST_MEDIA_PATH:-./media}:/media/videos:ro
- .data:/app/data
- ml-models:/app/ml-models:rw
web:
restart: unless-stopped
image: ghcr.io/iliashad/edit-mind-web:latest
container_name: edit-mind-web
env_file:
- .env.system
- .env
ports:
- "${PORT}:${PORT}"
depends_on:
postgres:
condition: service_healthy
chroma:
condition: service_started
redis:
condition: service_healthy
volumes:
- ${HOST_MEDIA_PATH:-./media}:/media/videos:ro
- .data:/app/data
networks:
- app-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3745"]
interval: 10s
timeout: 5s
retries: 30
start_period: 60s
chroma:
image: chromadb/chroma:1.3.5
container_name: edit-mind-chroma
restart: unless-stopped
env_file:
- .env.system
- .env
environment:
IS_PERSISTENT: TRUE
CHROMA_CORS_ALLOW_ORIGINS: '["http://localhost:3745", "http://localhost:4000", "http://web:3745", "http://background-jobs:4000"]'
ports:
- "${CHROMA_PORT}:8000"
volumes:
- chroma_data:/data
networks:
- app-network
redis:
restart: unless-stopped
image: redis:7
container_name: edit-mind-redis
env_file:
- .env.system
- .env
ports:
- "${REDIS_PORT:-6379}:6379"
volumes:
- redis_data:/data
networks:
- app-network
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 10
postgres:
image: postgres:16-alpine
container_name: edit-mind-postgres
restart: unless-stopped
env_file:
- .env.system
- .env
ports:
- "${POSTGRES_PORT}:5432"
environment:
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- pg_data:/var/lib/postgresql/data
networks:
- app-network
healthcheck:
test:
- "CMD-SHELL"
- "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"
ml:
restart: unless-stopped
image: ghcr.io/iliashad/edit-mind-ml:latest
container_name: edit-mind-ml
env_file:
- .env.system
- .env
ports:
- "${ML_PORT}:${ML_PORT}"
environment:
YOLO_CONFIG_DIR: /ml-models/ultralytics
DEEPFACE_HOME: /ml-models/deepface
TRANSCRIPTION_MODEL_CACHE: /ml-models/whisper
TORCH_HOME: /ml-models/torch
HF_HOME: /ml-models/huggingface
networks:
- app-network
volumes:
- ${HOST_MEDIA_PATH:-./media}:/media/videos:ro
- ml-models:/ml-models:rw
- .data:/app/data
volumes:
redis_data:
driver: local
ml-models:
driver: local
chroma_data:
driver: local
pg_data:
driver: local
networks:
app-network: