forked from c0sogi/LLMChat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-local.yaml
82 lines (74 loc) · 1.65 KB
/
docker-compose-local.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
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
version: '3.9'
volumes:
mysql:
redis:
qdrant:
networks:
reverse-proxy-public:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.16.0.0/24 # subnet for traefik and other services
services:
# No need to use traefik for local development
db:
image: mysql:latest
restart: always
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD}"
MYSQL_ROOT_HOST: "%"
MYSQL_DATABASE: "${MYSQL_DATABASE}"
MYSQL_USER: "${MYSQL_USER}"
MYSQL_PASSWORD: "${MYSQL_PASSWORD}"
TZ: "Asia/Seoul"
volumes:
- mysql:/var/lib/mysql
networks:
reverse-proxy-public:
ipv4_address: 172.16.0.11 # static IP
cache:
image: redis/redis-stack-server:latest
restart: always
environment:
- REDIS_ARGS=--requirepass ${REDIS_PASSWORD} --maxmemory 100mb --maxmemory-policy allkeys-lru --appendonly yes
ports:
- "6379:6379"
volumes:
- redis:/data
networks:
reverse-proxy-public:
ipv4_address: 172.16.0.12 # static IP
vectorstore:
image: qdrant/qdrant
restart: always
ports:
- "6333:6333"
- "6334:6334"
volumes:
- qdrant:/qdrant/storage
networks:
reverse-proxy-public:
ipv4_address: 172.16.0.13 # static IP
api:
image: cosogi/llmchat:230703
restart: always
env_file:
- .env
command:
- "--host"
- "0.0.0.0"
- "--port"
- "8000"
ports:
- "8000:8000"
depends_on:
- db
- cache
volumes:
- .:/app
networks:
reverse-proxy-public:
ipv4_address: 172.16.0.14 # static IP