-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
128 lines (118 loc) · 3.04 KB
/
docker-compose.yml
File metadata and controls
128 lines (118 loc) · 3.04 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
services:
certgen:
image: alpine
command: sh -c "apk add --no-cache openssl -q && sh /scripts/generate-certs.sh"
env_file: .env
volumes:
- ./certs:/certs
- ./scripts/generate-certs.sh:/scripts/generate-certs.sh:ro
restart: "no"
nginx:
image: nginx:alpine
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf:ro
- ./certs:/etc/nginx/certs:ro
depends_on:
certgen:
condition: service_completed_successfully
django:
condition: service_healthy
nuxt:
condition: service_started
django:
build: ./backend
restart: unless-stopped
command: gunicorn config.wsgi:application -c gunicorn.conf.py
env_file: .env
volumes:
- model_cache:/app/model_cache
- git_repos:/app/git_repos
healthcheck:
test: ["CMD-SHELL", "python -c \"import socket; s=socket.socket(); s.settimeout(2); s.connect(('localhost', 8000)); s.close()\""]
interval: 10s
timeout: 5s
retries: 15
start_period: 30s
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
qdrant:
condition: service_started
minio:
condition: service_started
celery:
build: ./backend
restart: unless-stopped
command: celery -A config worker -l info --concurrency=2
env_file: .env
volumes:
- model_cache:/app/model_cache
- git_repos:/app/git_repos
depends_on:
django:
condition: service_healthy
celery-beat:
build: ./backend
restart: unless-stopped
command: celery -A config beat -l info --scheduler django_celery_beat.schedulers:DatabaseScheduler
env_file: .env
depends_on:
django:
condition: service_healthy
redis:
image: redis:alpine
restart: unless-stopped
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
postgres:
image: postgres:16
restart: unless-stopped
environment:
POSTGRES_USER: ${POSTGRES_USER:-staxread}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-staxread}
POSTGRES_DB: ${POSTGRES_DB:-staxread}
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-staxread}"]
interval: 10s
timeout: 5s
retries: 5
qdrant:
image: qdrant/qdrant
restart: unless-stopped
volumes:
- qdrant_data:/qdrant/storage
minio:
image: minio/minio
restart: unless-stopped
command: server /data --console-address ":9001"
environment:
MINIO_ROOT_USER: ${MINIO_ACCESS_KEY:-staxread}
MINIO_ROOT_PASSWORD: ${MINIO_SECRET_KEY:-staxread-secret}
volumes:
- minio_data:/data
nuxt:
build: ./frontend
restart: unless-stopped
env_file: .env
depends_on:
- django
volumes:
postgres_data:
redis_data:
qdrant_data:
minio_data:
git_repos:
model_cache: