-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
144 lines (139 loc) · 4 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
#version: "3.4"
services:
datadb:
platform: linux/amd64
image: postgis/postgis:12-3.4
container_name: recipes-ai-datadb
environment:
POSTGRES_DB: ${POSTGRES_DATA_DB}
POSTGRES_USER: ${POSTGRES_DATA_USER}
POSTGRES_PASSWORD: ${POSTGRES_DATA_PASSWORD}
POSTGRES_PORT: ${POSTGRES_DATA_PORT}
restart: always
volumes:
- ./data/datadb:/var/lib/postgresql/data
ports:
- 5433:5432
recipedb:
platform: linux/amd64
image: ankane/pgvector:latest
container_name: recipes-ai-recipesdb
environment:
POSTGRES_DB: ${POSTGRES_RECIPE_DB}
POSTGRES_USER: ${POSTGRES_RECIPE_USER}
POSTGRES_PASSWORD: ${POSTGRES_RECIPE_PASSWORD}
POSTGRES_PORT: ${POSTGRES_RECIPE_PORT}
restart: always
ports:
- 5435:5432
volumes:
- ./db/recipedb:/docker-entrypoint-initdb.d
- ./data/recipesdb:/var/lib/postgresql/data
# recipes-server:
# platform: linux/amd64
# container_name: recipes-ai-recipes-server
# user: "1000:1000"
# build:
# context: .
# dockerfile: ./actions-robocorp/Dockerfile
# args:
# DATA_DB_CONN_STRING: ${DATA_DB_CONN_STRING}
# ports:
# # API
# - 3001:8080
# # Action server portal
# - 4001:8087
# env_file:
# - .env
# volumes:
# - shared-data:/action-server/actions-robocorp/actions_plugins/recipes-server/images
# - ./utils:/action-server/actions-robocorp/actions_plugins/recipes-server/utils
# - ./templates:/action-server/actions-robocorp/actions_plugins/recipes-server/templates
# - ./management/skills.py:/action-server/actions-robocorp/actions_plugins/recipes-server/recipes/skills.py
# # Simple FastAPI version
server:
platform: linux/amd64
container_name: recipes-ai-server
build:
context: .
dockerfile: ./server/fastapi/Dockerfile
args:
DATA_DB_CONN_STRING: ${DATA_DB_CONN_STRING}
ports:
- 4001:8080
env_file:
- .env
volumes:
- ./server/fastapi:/app
- shared-data:/app/recipes/public
- ./templates:/app/templates
- ./utils:/app/utils
- ./management/skills.py:/app/recipes/skills.py
- ./tests:/app/tests
- ./utils:/app/tests/utils
chat:
platform: linux/amd64
container_name: recipes-ai-chat
build:
context: .
dockerfile: ./ui/chat-chainlit-assistant/Dockerfile
ports:
- 8000:8000
env_file:
- .env
volumes:
- ./ui/chat-chainlit-assistant:/app
- shared-data:/app/public/images
- ./templates:/app/templates
- ./utils:/app/utils
- ./server/robocorp/actions_plugins/recipe-server/actions.py:/app/actions.py
- ./ingestion/ingestion.config:/app/ingestion.config
- ./assistants/chat_ui/create_update_assistant.py:/app/create_update_assistant.py
- ./assistants/chat_ui/files:/app/files
ingestion:
platform: linux/amd64
container_name: recipes-ai-ingestion
build:
context: .
dockerfile: ./ingestion/Dockerfile
depends_on:
- datadb
restart: always
env_file:
- .env
volumes:
- type: bind
source: ./ingestion
target: /app
- type: bind
source: ./utils
target: /app/utils
manager:
container_name: recipes-ai-manager
build:
context: .
dockerfile: ./management/Dockerfile
depends_on:
- recipedb
- datadb
restart: always
ports:
- 8091:8081
environment:
POSTGRES_DB: ${POSTGRES_RECIPE_DB}
POSTGRES_USER: ${POSTGRES_RECIPE_USER}
POSTGRES_PASSWORD: ${POSTGRES_RECIPE_PASSWORD}
POSTGRES_DATA_HOST: ${POSTGRES_DATA_HOST}
POSTGRES_DATA_DB: ${POSTGRES_DATA_DB}
POSTGRES_DATA_USER: ${POSTGRES_DATA_USER}
POSTGRES_DATA_PASSWORD: ${POSTGRES_DATA_PASSWORD}
env_file:
- .env
volumes:
- ./management:/app
- ./utils:/app/utils
- ./templates:/app/templates
- ./db/recipedb:/app/db
volumes:
pgdata2:
shared-data: