-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (52 loc) · 1.45 KB
/
docker-compose.yml
File metadata and controls
54 lines (52 loc) · 1.45 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
services:
postgres:
image: timescale/timescaledb-ha:pg16
container_name: code-context-postgres
ports:
- "54329:5432"
environment:
POSTGRES_DB: coderag
POSTGRES_USER: coderag
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-coderag_dev_password}
volumes:
- pgdata:/var/lib/postgresql/data
- ./scripts/init_db.sql:/docker-entrypoint-initdb.d/01_init.sql:ro
command: >
postgres
-c shared_preload_libraries='timescaledb'
-c work_mem=256MB
-c maintenance_work_mem=2GB
-c effective_cache_size=4GB
-c random_page_cost=1.1
-c effective_io_concurrency=200
-c max_parallel_workers_per_gather=4
-c max_parallel_workers=8
-c max_parallel_maintenance_workers=4
healthcheck:
test: ["CMD-SHELL", "pg_isready -U coderag -d coderag"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
elasticsearch:
image: elasticsearch:9.2.0
container_name: code-context-elasticsearch
ports:
- "9200:9200"
environment:
discovery.type: single-node
xpack.security.enabled: "false"
ES_JAVA_OPTS: -Xms1g -Xmx1g
volumes:
- esdata:/usr/share/elasticsearch/data
healthcheck:
test: ["CMD-SHELL", "curl -fsS http://localhost:9200 >/dev/null || exit 1"]
interval: 15s
timeout: 5s
retries: 10
restart: unless-stopped
volumes:
pgdata:
driver: local
esdata:
driver: local