-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
159 lines (151 loc) · 3.74 KB
/
docker-compose.yml
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
version: "3.8"
services:
db:
container_name: airweave-db
image: postgres:16
environment:
POSTGRES_DB: airweave
POSTGRES_USER: airweave
POSTGRES_PASSWORD: airweave1234!
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U airweave"]
interval: 5s
timeout: 5s
retries: 5
redis:
container_name: airweave-redis
image: redis:7-alpine
ports:
- "6379:6379"
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 5
backend:
container_name: airweave-backend
build:
context: ./backend
dockerfile: Dockerfile
env_file:
- .env
ports:
- "8001:8001"
volumes:
- ./backend:/app
environment:
- REDIS_HOST=redis
- WEAVIATE_HOST=weaviate
- NEO4J_URI=bolt://neo4j:7687
- NEO4J_USER=neo4j
- NEO4J_PASSWORD=password
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
weaviate:
condition: service_healthy
neo4j:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8001/health"]
interval: 5s
timeout: 10s
retries: 3
restart: on-failure
frontend:
container_name: airweave-frontend
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "8080:8080"
volumes:
- ./frontend:/app
- /app/node_modules
environment:
- VITE_API_URL=http://localhost:8001
depends_on:
backend:
condition: service_healthy
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:8080"]
interval: 30s
timeout: 10s
retries: 3
restart: on-failure
text2vec-transformers:
container_name: airweave-embeddings
image: semitechnologies/transformers-inference:sentence-transformers-all-MiniLM-L6-v2
ports:
- "8000:8080"
environment:
ENABLE_CUDA: 0
WORKERS_PER_NODE: 1
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:8080/health"]
interval: 30s
timeout: 10s
retries: 3
restart: on-failure
weaviate:
container_name: airweave-weaviate
image: semitechnologies/weaviate:1.24.1
ports:
- "8087:8080"
- "50051:50051"
environment:
QUERY_DEFAULTS_LIMIT: 25
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED: 'true'
PERSISTENCE_DATA_PATH: '/var/lib/weaviate'
DEFAULT_VECTORIZER_MODULE: 'text2vec-transformers'
ENABLE_MODULES: 'text2vec-transformers,text2vec-openai,text2vec-cohere,text2vec-huggingface'
TRANSFORMERS_INFERENCE_API: 'http://text2vec-transformers:8080'
CLUSTER_HOSTNAME: 'node1'
LOG_LEVEL: 'trace'
CONSOLE_LOGGER: 'true'
LOG_FORMAT: 'text'
GRPC_PORT: "50051"
depends_on:
- text2vec-transformers
logging:
driver: "json-file"
options:
max-size: "200m"
max-file: "10"
volumes:
- weaviate_data:/var/lib/weaviate
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:8080/v1/.well-known/ready"]
interval: 10s
timeout: 5s
retries: 3
start_period: 30s
restart: on-failure
neo4j:
container_name: airweave-neo4j
image: neo4j:latest
ports:
- "7474:7474"
- "7687:7687"
environment:
- NEO4J_AUTH=neo4j/password
volumes:
- neo4j_data:/data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:7474"]
interval: 10s
timeout: 10s
retries: 5
volumes:
postgres_data:
redis_data:
weaviate_data:
neo4j_data: