-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.services.yml
90 lines (84 loc) · 1.77 KB
/
docker-compose.services.yml
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
include:
- docker-compose.opensearch.${OPENSEARCH_CLUSTER_TYPE:-single-node}.yml
services:
db:
profiles:
- backend
image: postgres:12.20
healthcheck:
test: ["CMD", "pg_isready"]
interval: 3s
timeout: 3s
retries: 10
ports:
- 5432:5432
environment:
- PGUSER=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
- pgdata:/var/lib/postgresql
redis:
profiles:
- backend
image: redis:7.4.1
healthcheck:
test: ["CMD", "redis-cli", "ping", "|", "grep", "PONG"]
interval: 3s
timeout: 3s
retries: 10
ports:
- "6379"
qdrant:
image: qdrant/qdrant:latest
restart: always
ports:
- "6333:6333"
volumes:
- qdrant-data:/qdrant/storage
nginx:
profiles:
- backend
build:
context: ./nginx
ports:
- "8063:8063"
links:
- web
environment:
PORT: 8063
NGINX_UWSGI_PASS: "web:8061"
volumes:
- ./config:/etc/nginx/templates
tika:
profiles:
- backend
image: apache/tika:2.5.0
ports:
- "9998:9998"
locust:
image: locustio/locust
ports:
- "8089:8089"
volumes:
- ./load_testing:/mnt/locust
command: -f /mnt/locust/locustfile.py --master -H http://nginx:8063 --class-picker
links:
- nginx
profiles:
- load-testing
locust-worker:
image: locustio/locust
volumes:
- ./load_testing:/mnt/locust
command: -f /mnt/locust/locustfile.py --worker --master-host locust
links:
- nginx
profiles:
- load-testing
volumes:
pgdata:
# note: these are here instead of docker-compose.apps.yml because `extends` doesn't pull them in
django_media:
yarn-cache:
qdrant-data: