forked from TyCoding/langchat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
78 lines (71 loc) · 1.7 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
version: '3'
services:
langchat:
image: registry.cn-beijing.aliyuncs.com/langchat/langchat
restart: always
ports:
- 8100:8100
volumes:
- ./logs/:/app/logs
networks:
- langchat-net
langchat-ui:
image: registry.cn-beijing.aliyuncs.com/langchat/langchat-ui
restart: always
ports:
- 3010:80
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
networks:
- langchat-net
langchat-client:
image: registry.cn-beijing.aliyuncs.com/langchat/langchat-client
restart: always
ports:
- 3011:80
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
networks:
- langchat-net
langchat-mysql:
image: mysql:latest
ports:
- 3306:3306
command: --default-authentication-plugin=mysql_native_password --skip-name-resolve
volumes:
- ./mysql_data:/var/lib/mysql
- ./docs/langchat.sql:/docker-entrypoint-initdb.d/langchat.sql
environment:
- MYSQL_ROOT_PASSWORD=root
restart: always
mem_limit: 512m
networks:
- langchat-net
langchat-redis:
image: redis:latest
ports:
- 6379:6379
volumes:
- ./redis_data:/data
restart: always
command: redis-server
networks:
- langchat-net
langchat-pgvector:
image: registry.cn-beijing.aliyuncs.com/langchat/pgvector
ports:
- 5432:5432
restart: always
environment:
- POSTGRES_DB=langchat
- POSTGRES_USER=root
- POSTGRES_PASSWORD=root
- POSTGRES_HOST_AUTH_METHOD=trust
volumes:
- ./pgdata:/var/lib/postgresql/data
- ./docs/pgvector/init.sql:/docker-entrypoint-initdb.d/init.sql
networks:
- langchat-net
networks:
langchat-net:
driver: bridge