-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.single.yml
More file actions
36 lines (34 loc) · 968 Bytes
/
docker-compose.single.yml
File metadata and controls
36 lines (34 loc) · 968 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
# LANCE Single-Node for Integration Testing (No Replication)
#
# Usage:
# docker-compose -f docker-compose.single.yml up -d # Start single node
# docker-compose -f docker-compose.single.yml down # Stop node
# docker-compose -f docker-compose.single.yml logs -f # View logs
services:
lance:
build:
context: .
dockerfile: Dockerfile
container_name: lance-single
hostname: lance-single
command:
- "--node-id=0"
- "--listen=0.0.0.0:1992"
- "--metrics=0.0.0.0:9090"
- "--health=0.0.0.0:8080"
- "--data-dir=/var/lib/lance"
- "--replication-mode=l1"
ports:
- "1992:1992" # Client port
- "9090:9090" # Metrics
- "8080:8080" # Health
volumes:
- lance-single-data:/var/lib/lance
healthcheck:
test: ["CMD", "nc", "-z", "localhost", "1992"]
interval: 5s
timeout: 3s
retries: 5
start_period: 10s
volumes:
lance-single-data: