-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (35 loc) · 989 Bytes
/
docker-compose.yml
File metadata and controls
36 lines (35 loc) · 989 Bytes
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
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
volumes:
pgdata:
driver: local
esdata:
driver: local