-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
78 lines (74 loc) · 1.9 KB
/
docker-compose.yml
File metadata and controls
78 lines (74 loc) · 1.9 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: vectorless
POSTGRES_PASSWORD: vectorless
POSTGRES_DB: vectorless
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U vectorless"]
interval: 5s
timeout: 3s
retries: 10
redis:
image: redis:7-alpine
ports:
- "6379:6379"
volumes:
- redisdata:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 10
# MinIO: local S3-compatible storage for dev.
minio:
image: minio/minio:latest
command: server /data --console-address ":9001"
environment:
MINIO_ROOT_USER: minio
MINIO_ROOT_PASSWORD: miniominio
ports:
- "9000:9000"
- "9001:9001"
volumes:
- miniodata:/data
healthcheck:
test: ["CMD", "mc", "ready", "local"]
interval: 10s
timeout: 3s
retries: 10
# The engine itself. Gated behind a profile so the default
# `docker compose up -d` brings up only the backing services — devs
# run `go run ./cmd/engine` locally for fast iteration. To run the
# whole stack containerised use `docker compose --profile engine up`.
engine:
profiles: ["engine"]
build:
context: .
dockerfile: Dockerfile
depends_on:
postgres:
condition: service_healthy
environment:
VLE_DATABASE_URL: "postgres://vectorless:vectorless@postgres:5432/vectorless?sslmode=disable"
VLE_SERVER_ADDR: ":8080"
VLE_STORAGE_DRIVER: "local"
VLE_QUEUE_DRIVER: "river"
VLE_LLM_DRIVER: "anthropic"
VLE_LOG_LEVEL: "info"
VLE_ANTHROPIC_API_KEY: "${ANTHROPIC_API_KEY:-}"
ports:
- "8080:8080"
volumes:
- enginedata:/data
restart: unless-stopped
volumes:
pgdata:
redisdata:
miniodata:
enginedata: