This repository has been archived by the owner on Aug 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 30
/
docker-compose.ngrok_example.yml
105 lines (93 loc) · 2.08 KB
/
docker-compose.ngrok_example.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
99
100
101
102
103
104
105
## Sample File showing ngrok configuration. Do not use this as is for Production. This is for Testing only
version: "3.7"
services:
va_api_gateway:
init: true
build: './va_api_gateway'
environment:
- PORT_APP=3000
- WORKERS=1
- THREADS=50
- REDIS_URL=redis
- REDIS_PORT=6379
- REDIS_PASS=Y7T6r5re3t8j9yr
- MONGODB_HOST=mongodb
- MONGODB_PORT=27017
- MONGODB_USERNAME=eva
- MONGODB_PASS=evapass
- RASA_SERVER=http://va_custom_rasa:5005/model
ports:
- "3000:3000"
volumes:
- rasa_projects:/rasa_projects
depends_on:
- redis
redis:
image: redis:latest
command: redis-server --requirepass Y7T6r5re3t8j9yr
ports:
- '6379:6379'
va_trainer_worker:
build: './trainer_worker'
volumes:
- rasa_projects:/rasa_projects
environment:
- REDIS_PASS=Y7T6r5re3t8j9yr
depends_on:
- redis
- va_api_gateway
mongodb:
image: mongo:latest
container_name: "mongodb"
environment:
- MONGO_DATA_DIR=/data/db
- MONGO_LOG_DIR=/dev/null
- MONGO_INITDB_ROOT_USERNAME=eva
- MONGO_INITDB_ROOT_PASSWORD=evapass
volumes:
- mongodb:/data/db
ports:
- 27017:27017
command: mongod --logpath=/dev/null # --quiet
va_ui_trainer:
build: './ui-trainer'
ports:
- "8080:80"
depends_on:
- va_api_gateway
va_action_server:
build: './action_server'
ports:
- 5055:5055
va_custom_rasa:
build: './rasa_custom'
ports:
- 5005:5005
volumes:
- rasa_projects:/rasa_projects
command:
- run
- --endpoints
- config/endpoints.yml
- --debug
- --enable-api
- --cors
- "*"
depends_on:
- va_action_server
# Use only for testing not for Production.
# use url /inspect/http to get the ngrok url
ngrok:
image: wernight/ngrok
ports:
- "4040:4040"
command:
- /bin/sh
- -c
- |
ngrok http va_custom_rasa:5005
depends_on:
- va_custom_rasa
volumes:
mongodb:
rasa_projects: