-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
executable file
·72 lines (65 loc) · 1.69 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
---
version: "3.8"
services:
rasa-actionServer:
image: rasa/rasa:3.6.6-full
security_opt:
- seccomp:unconfined
working_dir: /app
volumes:
- ./actionsServer:/app
environment:
- ChatGPTApiKey=
- ActionServerMode=
# entrypoint: /bin/bash -c "pip install -r requirement.txt && rasa run actions"
command: run actions
depends_on:
- training-model
- redis
training-model:
image: rasa/rasa:3.6.6-full
security_opt:
- seccomp:unconfined
working_dir: /app
volumes:
- ./actionsServer:/app
command: train
# test-model:
# image: rasa/rasa:3.6.6-full
# security_opt:
# - seccomp:unconfined
# working_dir: /app
# volumes:
# - ./actionsServer:/app
# depends_on:
# training-model:
# condition: service_completed_successfully
# command: test
rasa-botServer:
image: rasa/rasa:3.6.6-full
security_opt:
- seccomp:unconfined
working_dir: /app
volumes:
- ./actionsServer:/app
depends_on:
training-model:
condition: service_completed_successfully
command: run --cors "*"
ports:
- "5005:5005"
- "5006:5006"
web:
image: node:20.8.1
ports:
- "80:80"
volumes:
- ./botroom:/app
command: sh -c "cd /app && rm -rf .git/hooks && npm install && npm install -g serve && npm run build && serve -s ./build -l 80"
redis:
image: redis/redis-stack
ports:
- '6379:6379'
command: redis-server --save 20 1 --loglevel warning --protected-mode no --loadmodule /opt/redis-stack/lib/redisearch.so --loadmodule /opt/redis-stack/lib/rejson.so
# volumes:
# - ./redis-data:/data