-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
102 lines (98 loc) · 2.71 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
services:
reverse-proxy:
image: caddy:latest
depends_on:
- web
restart: unless-stopped
ports:
- "80:80"
- "443:443"
environment:
- NOSIA_URL=${NOSIA_URL}
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- caddy-config:/config
- caddy-data:/data
web:
build:
context: .
args:
UID: ${UID:-1000}
GID: ${GID:-${UID:-1000}}
environment:
- DATABASE_URL=${DATABASE_URL}
- OLLAMA_BASE_URL=${OLLAMA_BASE_URL}
- SECRET_KEY_BASE=${SECRET_KEY_BASE}
- LLM_MODEL=${LLM_MODEL}
- CHECK_MODEL=${CHECK_MODEL}
- EMBEDDING_MODEL=${EMBEDDING_MODEL}
- LLM_TEMPERATURE=${LLM_TEMPERATURE}
- CHUNK_SIZE=${CHUNK_SIZE}
- CHUNK_OVERLAP=${CHUNK_OVERLAP}
- SEPARATORS=${SEPARATORS}
- LLM_NUM_CTX=${LLM_NUM_CTX}
- LLM_TOP_K=${LLM_TOP_K}
- LLM_TOP_P=${LLM_TOP_P}
- RETRIEVAL_FETCH_K=${RETRIEVAL_FETCH_K}
- RAG_SYSTEM_TEMPLATE=${RAG_SYSTEM_TEMPLATE}
- QUERY_PROMPT_TEMPLATE=${QUERY_PROMPT_TEMPLATE}
volumes:
- rails-storage:/rails/storage
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/up"]
interval: 2s
timeout: 5s
retries: 30
depends_on:
postgres-db:
condition: service_healthy
restart: on-failure:5
postgres-db:
image: pgvector/pgvector:pg16
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
volumes:
- postgres-db-data:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}
interval: 2s
timeout: 5s
retries: 30
restart: on-failure:5
solidq:
build: .
command: bundle exec rake solid_queue:start
environment:
- DATABASE_URL=${DATABASE_URL}
- OLLAMA_BASE_URL=${OLLAMA_BASE_URL}
- SECRET_KEY_BASE=${SECRET_KEY_BASE}
- LLM_MODEL=${LLM_MODEL}
- CHECK_MODEL=${CHECK_MODEL}
- EMBEDDING_MODEL=${EMBEDDING_MODEL}
- LLM_TEMPERATURE=${LLM_TEMPERATURE}
- CHUNK_SIZE=${CHUNK_SIZE}
- CHUNK_OVERLAP=${CHUNK_OVERLAP}
- SEPARATORS=${SEPARATORS}
- LLM_NUM_CTX=${LLM_NUM_CTX}
- LLM_TOP_K=${LLM_TOP_K}
- LLM_TOP_P=${LLM_TOP_P}
- RETRIEVAL_FETCH_K=${RETRIEVAL_FETCH_K}
- RAG_SYSTEM_TEMPLATE=${RAG_SYSTEM_TEMPLATE}
- QUERY_PROMPT_TEMPLATE=${QUERY_PROMPT_TEMPLATE}
volumes:
- rails-storage:/rails/storage
depends_on:
postgres-db:
condition: service_healthy
web:
condition: service_healthy
restart: on-failure:5
volumes:
caddy-config:
caddy-data:
postgres-db-data:
rails-storage: