-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (61 loc) · 1.62 KB
/
docker-compose.yml
File metadata and controls
63 lines (61 loc) · 1.62 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
services:
postgres:
image: pgvector/pgvector:pg16
restart: always
container_name: voting-services-db
ports:
- '5555:5432'
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
volumes:
- voting-services-db:/var/lib/postgresql/data
command: >
postgres
-c shared_preload_libraries=vector
-c log_statement=all
-c log_destination=stderr
-c logging_collector=on
-c max_connections=200
-c shared_buffers=256MB
-c effective_cache_size=1GB
-c maintenance_work_mem=64MB
-c checkpoint_completion_target=0.9
-c wal_buffers=16MB
-c default_statistics_target=100
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U postgres']
interval: 10s
timeout: 5s
retries: 5
postgres-test:
image: pgvector/pgvector:pg16
restart: always
container_name: voting-services-test-db
ports:
- '5556:5432'
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres_test
command: >
postgres
-c shared_preload_libraries=vector
-c log_statement=none
-c log_destination=stderr
-c logging_collector=off
-c max_connections=100
-c shared_buffers=128MB
-c effective_cache_size=512MB
-c maintenance_work_mem=32MB
-c checkpoint_completion_target=0.9
-c wal_buffers=8MB
-c default_statistics_target=50
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U postgres']
interval: 10s
timeout: 5s
retries: 5
volumes:
voting-services-db: