-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
133 lines (88 loc) · 2.07 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
133 lines (88 loc) · 2.07 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
services:
frontend:
build: ./frontend
ports:
- "3000:3000"
environment:
API_BASE_URL: http://backend:8000
SESSION_COOKIE_SECURE: "false"
SESSION_REFRESH_COOKIE_MAX_AGE_SECONDS: "604800"
NEXT_PUBLIC_APP_NAME: AegisAI
depends_on:
backend:
condition: service_started
backend:
build: ./backend
ports:
- "8000:8000"
env_file:
- backend/.env
volumes:
- document_data:/data/documents
command: ["/bin/sh", "/app/scripts/start_backend.sh"]
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
qdrant:
condition: service_started
redis:
image: redis:7.4-alpine
restart: always
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 10
celery-worker:
build: ./backend
env_file:
- backend/.env
volumes:
- document_data:/data/documents
command:
["celery", "-A", "app.workers.celery_app:celery_app", "worker", "--loglevel=INFO"]
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
celery-beat:
build: ./backend
env_file:
- backend/.env
command:
["celery", "-A", "app.workers.celery_app:celery_app", "beat", "--loglevel=INFO"]
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
postgres:
image: postgres:16
restart: always
environment:
POSTGRES_DB: aegis
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d aegis"]
interval: 5s
timeout: 5s
retries: 10
qdrant:
image: qdrant/qdrant
restart: always
ports:
- "6333:6333"
volumes:
- qdrant_data:/qdrant/storage
volumes:
postgres_data:
qdrant_data:
document_data: