-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
79 lines (71 loc) · 1.77 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
x-bot-common-build: &bot-common-build
build:
context: .
dockerfile: ./docker/Dockerfile
x-bot-common: &bot-common
env_file:
- .env
services:
# =============================== Coach =================================
# All the models are trained by this coach.
coach:
<<: [*bot-common-build, *bot-common]
volumes:
- ./bot/:/bot/
entrypoint: "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
# https://github.com/docker/compose/issues/6767
networks:
- bot-network
entrypoint: "make api"
# ================================= Actions =================================
# Rasa middleware used to connect with external APIs.
actions:
<<: [*bot-common-build, *bot-common]
container_name: actions
ports:
- 5055:5055
volumes:
- ./bot:/bot
entrypoint: "make actions"
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
redis:
image: redis:7.2.3-bookworm
container_name: redis
ports:
- 6379:6379
networks:
- bot-network
postgres:
image: postgres:15
container_name: postgres
environment:
- POSTGRES_PASSWORD=rasa
- POSTGRES_USER=rasa
- POSTGRES_DB=rasa
networks:
- bot-network
networks:
bot-network:
driver: bridge