-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
38 lines (35 loc) · 943 Bytes
/
docker-compose.dev.yml
File metadata and controls
38 lines (35 loc) · 943 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
37
38
x-logging: &default-logging
driver: json-file
options:
max-size: "10m"
max-file: "3"
services:
vectorchord:
image: tensorchord/vchord-postgres:pg17-v0.4.1
command: ["postgres", "-c", "log_checkpoints=off"]
ports:
- "5432:5432"
environment:
- POSTGRES_USER=${POSTGRES_USER:-postgres}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-postgres}
- POSTGRES_DB=${POSTGRES_DB:-streamystats}
- POSTGRES_HOST_AUTH_METHOD=scram-sha-256
- POSTGRES_INITDB_ARGS=--auth-host=scram-sha-256
volumes:
- vectorchord_data:/var/lib/postgresql/data
restart: unless-stopped
logging: *default-logging
healthcheck:
test:
[
"CMD-SHELL",
"pg_isready -U ${POSTGRES_USER:-postgres} -d ${POSTGRES_DB:-streamystats}",
]
interval: 10s
timeout: 5s
retries: 5
volumes:
vectorchord_data:
driver: local
networks:
app-network: