-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
98 lines (89 loc) · 2.25 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
version: "3.4"
x-bot-common-build: &bot-common-build
build:
context: .
dockerfile: ./docker/bot.Dockerfile
x-bot-common: &bot-common
env_file:
- env/auth.env
- env/servers.env
services:
# =============================== Webchat =================================
# Nginx container to run rasa webchat
webchat:
image: nginx
volumes:
- ./webchat/:/usr/share/nginx/html/
ports:
- 8001:80
# =============================== Coach =================================
# All the models are trained by this coach.
coach:
<<: *bot-common-build
volumes:
- ./bot/models/:/bot/models/
command: "make train"
# ================================= Bot =====================================
# Rasa open source server
bot:
<<: *bot-common-build
<<: *bot-common
container_name: bot
restart: unless-stopped
volumes:
- ./bot/:/bot/
ports:
- 5006:5006
- 5004:5004
- 5005:5005
depends_on:
- actions
# https://github.com/docker/compose/issues/6767
networks:
- bot-network
# ================================= Actions =================================
# Rasa middleware used to connect with external APIs.
actions:
<<: *bot-common-build
<<: *bot-common
container_name: actions
ports:
- 5055:5055
volumes:
- ./bot/actions:/bot/actions
command: sh -c "make actions"
environment:
JWT_SECRET: RRrWj+H2QEqV9O7iKBrU0zuB
networks:
- bot-network
# ================================= RASA X ==================================
# Rasa X application
x:
container_name: x
<<: *bot-common
<<: *bot-common-build
restart: unless-stopped
volumes:
- ./bot/:/bot/
- /bot/tests/:/bot/tests/
ports:
- 5002:5002
environment:
- GIT_PYTHON_REFRESH=quiet
depends_on:
- actions
command: sh -c "make x"
networks:
- bot-network
# ================================= Duckling ==================================
# Duckling HTTP extractor for entities such as email, date, amounts...
duckling:
container_name: duck
image: "rasa/duckling"
ports:
- 6800:8000
networks:
- bot-network
networks:
bot-network:
driver: bridge