-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstack.yml
More file actions
94 lines (87 loc) · 2.46 KB
/
stack.yml
File metadata and controls
94 lines (87 loc) · 2.46 KB
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
version: '3.8'
services:
# API Gateway
kong:
image: kong:latest
volumes:
- ./kong.yml:/usr/local/kong/declarative/kong.yml
environment:
KONG_DATABASE: 'off'
KONG_DECLARATIVE_CONFIG: /usr/local/kong/declarative/kong.yml
KONG_PROXY_ACCESS_LOG: /dev/stdout
KONG_ADMIN_ACCESS_LOG: /dev/stdout
KONG_PROXY_ERROR_LOG: /dev/stderr
KONG_ADMIN_ERROR_LOG: /dev/stderr
KONG_ADMIN_LISTEN: 0.0.0.0:8001, 0.0.0.0:8444 ssl
ports:
- "80:8000"
- "443:8443"
deploy:
replicas: 1
placement:
constraints: [ node.role == manager ]
max_replicas_per_node: 1
update_config:
order: start-first
rollback_config:
order: stop-first
networks:
- net-api-gateway
# React web UI for interacting with the bot
web-ui:
image: registry.gitlab.com/gabrielboroghina/pepper-conv-agent/pepper-web
environment:
RASA_SERVER_HOST: pepper_rasa-server
networks:
- net-api-gateway
deploy:
replicas: 1
placement:
max_replicas_per_node: 1
# Conversational agent server
rasa-server:
image: registry.gitlab.com/gabrielboroghina/pepper-conv-agent/rasa-server
environment:
RASA_ACTIONS_API_HOST: rasa-actions
RASA_ACTIONS_API_PORT: 80
command: "rasa run -p 80 --enable-api --endpoints endpoints.prod.yml"
networks:
- net-api-gateway
- net-rasa
depends_on:
- rasa-actions
# RASA actions HTTP server
rasa-actions:
image: registry.gitlab.com/gabrielboroghina/pepper-conv-agent/rasa-actions
environment:
KB_API_URL: "http://graphdb/repositories/pepper"
KB_BASE_URI: "http://www.readerbench.com/pepper"
command: bash -c "echo Waiting... && sleep 30 && rasa run actions -p 80" # Wait for the DB to initialize
networks:
- net-rasa
- net-db
depends_on:
- graphdb
deploy:
resources:
limits:
memory: 200M
# Knowledge base
graphdb:
image: registry.gitlab.com/gabrielboroghina/pepper-conv-agent/graphdb
volumes:
- vol-graphdb:/opt/graphdb-instance/
networks:
- net-api-gateway
- net-db
deploy:
resources:
limits:
cpus: '0.75'
memory: 900M
volumes:
vol-graphdb: # DB persistence volume
networks:
net-api-gateway: # Connect services to Kong API Gateway
net-db: # Access to DB service
net-rasa: # Connect Rasa server to Rasa actions server