-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (38 loc) · 812 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (38 loc) · 812 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
39
40
services:
redvector:
build:
context: .
dockerfile: Dockerfile
image: redvector:latest
container_name: redvector
ports:
- "6379:6379" # Redis protocol
- "8888:8888" # REST API
- "50051:50051" # gRPC API
volumes:
- redvector-data:/data
environment:
- RUST_LOG=info
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-sf", "http://localhost:8888/health"]
interval: 30s
timeout: 3s
retries: 3
start_period: 10s
deploy:
resources:
limits:
cpus: '4'
memory: 4G
reservations:
cpus: '1'
memory: 1G
networks:
- redvector-network
volumes:
redvector-data:
driver: local
networks:
redvector-network:
driver: bridge