-
Notifications
You must be signed in to change notification settings - Fork 1
/
bionic-docker-compose-dec2023.yml
91 lines (82 loc) · 2.71 KB
/
bionic-docker-compose-dec2023.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
services:
llm-api:
image: ghcr.io/bionic-gpt/llama-2-7b-chat:1.0.4
platform: linux/amd64
embeddings-api:
image: ghcr.io/huggingface/text-embeddings-inference:cpu-0.2.2
platform: linux/amd64
command: --model-id BAAI/bge-small-en-v1.5
# Handles parsing of multiple documents types.
unstructured:
image: downloads.unstructured.io/unstructured-io/unstructured-api:c30a2b8
platform: linux/amd64
ports:
- "8000:8000"
# Handles routing between the application, barricade and the LLM API
envoy:
image: ghcr.io/bionic-gpt/bionicgpt-envoy:1.4.14
platform: linux/amd64
ports:
- "7800:7700"
# Postgres pre-loaded with pgVector
# To connect outside docker `docker compose exec db psql -U postgres`
db:
image: ankane/pgvector
platform: linux/amd64
environment:
POSTGRES_PASSWORD: testpassword
POSTGRES_USER: postgres
POSTGRES_DB: finetuna
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
# Sets up our database tables
migrations:
image: ghcr.io/bionic-gpt/bionicgpt-db-migrations:1.4.14
platform: linux/amd64
environment:
DATABASE_URL: postgresql://postgres:testpassword@db:5432/postgres?sslmode=disable
depends_on:
db:
condition: service_healthy
# Barricade handles all /auth routes for user sign up and sign in.
barricade:
image: purtontech/barricade
platform: linux/amd64
environment:
# This secret key is used to encrypt cookies.
SECRET_KEY: 190a5bf4b3cbb6c0991967ab1c48ab30790af876720f1835cbbf3820f4f5d949
DATABASE_URL: postgresql://ft_authentication:testpassword@db:5432/postgres?sslmode=disable
FORWARD_URL: app
FORWARD_PORT: 7703
REDIRECT_URL: /app/post_registration
RUST_LOG: warn
depends_on:
db:
condition: service_healthy
migrations:
condition: service_completed_successfully
# Our axum server delivering our user interface
pipeline-job:
image: ghcr.io/bionic-gpt/bionicgpt-pipeline-job:1.4.14
platform: linux/amd64
environment:
APP_DATABASE_URL: postgresql://ft_application:testpassword@db:5432/postgres?sslmode=disable
depends_on:
db:
condition: service_healthy
migrations:
condition: service_completed_successfully
# Our axum server delivering our user interface
app:
image: ghcr.io/bionic-gpt/bionicgpt:1.4.14
platform: linux/amd64
environment:
APP_DATABASE_URL: postgresql://ft_application:testpassword@db:5432/postgres?sslmode=disable
depends_on:
db:
condition: service_healthy
migrations:
condition: service_completed_successfully