-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-infra.yaml
55 lines (55 loc) · 1.71 KB
/
docker-compose-infra.yaml
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
##################################################################################################################
# This Docker Compose file defines the infrastructure services required for the Ragu applications.
# It ensures that the PostgreSQL containers are fully started before initiating the application build processes,
# as the applications depend on fully migrated databases for code generation from the database schema.
#################################################################################################################
name: ragu
services:
weaviate:
command:
- "--host"
- "0.0.0.0"
- "--port"
- "80"
- "--scheme"
- "http"
image: "semitechnologies/weaviate:1.24.12"
container_name: weaviate
ports:
- "8080:80"
volumes:
- "weaviate_data:/var/lib/docker/ragu/weaviate/data"
restart: "on-failure:0"
env_file:
- "config/weaviate/.env"
ragu-chunker-postgres:
image: "postgres:latest"
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 10s
timeout: 5s
retries: 5
env_file:
- "config/ragu-chunker/.postgres"
ports:
- "5433:5432"
volumes:
- "ragu_chunker_postgres_data:/var/lib/docker/ragu/postgres/data"
ragu-chat-api-postgres:
image: "postgres:latest"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
ports:
- "5454:5432"
restart: "always"
env_file:
- "config/ragu-chat-api/.postgres"
volumes:
- "ragu_chat_api_postgres_data:/var/lib/docker/ragu/postgres/data"
volumes:
ragu_chunker_postgres_data:
ragu_chat_api_postgres_data:
weaviate_data: