-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
104 lines (98 loc) · 2.5 KB
/
docker-compose.yml
File metadata and controls
104 lines (98 loc) · 2.5 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
services:
# PostgreSQL Database
postgres:
image: pgvector/pgvector:pg16
container_name: langorch_postgres
environment:
POSTGRES_USER: ${POSTGRES_USER:-langorch}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-changeme_postgres_password}
POSTGRES_DB: ${POSTGRES_DB:-langorch}
ports:
- "${POSTGRES_PORT:-5432}:5432"
volumes:
- ./data/postgres:/var/lib/postgresql/data
- ./infrastructure/docker/postgres/init.sql:/docker-entrypoint-initdb.d/init.sql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-langorch}"]
interval: 10s
timeout: 5s
retries: 5
networks:
- langorch_network
# Redis Cache
redis:
image: redis:7-alpine
container_name: langorch_redis
command: redis-server --requirepass ${REDIS_PASSWORD:-changeme_redis_password} --appendonly yes
ports:
- "${REDIS_PORT:-6379}:6379"
volumes:
- ./data/redis:/data
healthcheck:
test: ["CMD", "redis-cli", "--raw", "incr", "ping"]
interval: 10s
timeout: 5s
retries: 5
networks:
- langorch_network
# Qdrant Vector Database
qdrant:
image: qdrant/qdrant:latest
container_name: langorch_qdrant
ports:
- "${QDRANT_PORT:-6333}:6333"
- "6334:6334" # gRPC port
volumes:
- ./data/qdrant:/qdrant/storage
networks:
- langorch_network
# HashiCorp Vault (Development mode)
vault:
image: hashicorp/vault:latest
container_name: langorch_vault
environment:
VAULT_DEV_ROOT_TOKEN_ID: ${VAULT_TOKEN:-dev-root-token}
VAULT_DEV_LISTEN_ADDRESS: 0.0.0.0:8200
ports:
- "8200:8200"
volumes:
- ./data/vault:/vault/data
cap_add:
- IPC_LOCK
networks:
- langorch_network
healthcheck:
test: ["CMD", "vault", "status"]
interval: 10s
timeout: 5s
retries: 3
start_period: 5s
# Remove profiles to make it run by default
# profiles:
# - full
# Ollama (Local Embedding Models)
ollama:
image: ollama/ollama:latest
container_name: langorch_ollama
ports:
- "11434:11434"
volumes:
- ./data/ollama:/root/.ollama
networks:
- langorch_network
healthcheck:
test: ["CMD", "ollama", "list"]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
# Remove profiles to make it run by default
# profiles:
# - full
networks:
langorch_network:
driver: bridge
volumes:
postgres_data:
redis_data:
qdrant_data: