-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (54 loc) · 1.26 KB
/
docker-compose.yml
File metadata and controls
58 lines (54 loc) · 1.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
version: '3.8'
services:
mysql:
image: mysql:8.0
container_name: task_management_mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_DATABASE: ${DB_NAME}
ports:
- '${DB_PORT}:3306'
volumes:
- mysql_data:/var/lib/mysql
command: --default-authentication-plugin=mysql_native_password
healthcheck:
test: ['CMD', 'mysqladmin', 'ping', '-h', 'localhost']
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
container_name: task_management_redis
restart: always
ports:
- '${REDIS_PORT}:6379'
volumes:
- redis_data:/data
command: redis-server --appendonly yes
healthcheck:
test: ['CMD', 'redis-cli', 'ping']
interval: 10s
timeout: 3s
retries: 5
qdrant:
image: qdrant/qdrant:v1.2.0
container_name: task_management_qdrant
restart: always
ports:
- '${QDRANT_PORT}:6333'
volumes:
- qdrant_data:/qdrant/storage
healthcheck:
test:
['CMD', 'curl', '-f', 'http://${QDRANT_HOST}:${QDRANT_PORT}/healthz']
interval: 10s
timeout: 5s
retries: 5
volumes:
mysql_data:
driver: local
redis_data:
driver: local
qdrant_data:
driver: local