-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (48 loc) · 940 Bytes
/
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
services:
backend:
build:
context: .
dockerfile: ./Dockerfile
container_name: backend
env_file:
- ./.env
ports:
- 8000:8000
volumes:
- ./:/backend
restart: always
depends_on:
- ollama
- pgvector
networks:
- my-proxy-net
ollama:
container_name: ollama
image: ollama/ollama:latest
expose:
- 11434
volumes:
- ./ollama:/root/.ollama
restart: always
environment:
- OLLAMA_KEEP_ALIVE=24h
- OLLAMA_HOST=0.0.0.0
networks:
- my-proxy-net
pgvector:
container_name: pgvector
image: pgvector/pgvector:pg16
expose:
- 5432
volumes:
- ./pgvector:/var/lib/postgresql
environment:
POSTGRES_DB: langchain
POSTGRES_USER: langchain
POSTGRES_PASSWORD: langchain
networks:
- my-proxy-net
networks:
my-proxy-net:
external:
name: bot-network