-
Notifications
You must be signed in to change notification settings - Fork 28
/
docker-compose-bot-documentDB.yml
153 lines (145 loc) · 4.07 KB
/
docker-compose-bot-documentDB.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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
version: '3'
#Use .env-documentDB file and rename it to .env
services:
build_worker:
image: tock/build_worker:$ENV_TAG
environment:
- tock_mongo_url=$ENV_MONGO_URL
- tock_document_db_on=$ENV_MONGO_DOCDB
- tock_env=prod
- JAVA_ARGS=-Xmx1g -XX:MaxMetaspaceSize=256m $ENV_JAVA_ARGS
# - tock_default_log_level=warn
# - tock_service_log_level=info
# - tock_database_log_level=warn
restart: always
volumes:
- ./ssl:/ssl
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/healthcheck"]
interval: 1m30s
timeout: 10s
retries: 3
start_period: 40s
duckling:
image: tock/duckling:$ENV_TAG
environment:
- tock_env=prod
# - tock_default_log_level=warn
# - tock_service_log_level=info
# - tock_database_log_level=warn
expose:
- "8080"
restart: always
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/healthcheck"]
interval: 1m30s
timeout: 10s
retries: 3
start_period: 40s
deploy:
mode: replicated
replicas: 2
kotlin_compiler:
image: tock/kotlin_compiler:$ENV_TAG
environment:
- tock_env=prod
- tock_kotlin_compiler_classpath=/maven
# - tock_default_log_level=warn
# - tock_service_log_level=info
# - tock_database_log_level=warn
expose:
- "8080"
restart: always
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/healthcheck"]
interval: 1m30s
timeout: 10s
retries: 3
start_period: 40s
admin_web:
image: tock/bot_admin:$ENV_TAG
depends_on:
- duckling
- kotlin_compiler
environment:
- tock_mongo_url=$ENV_MONGO_URL
- tock_document_db_on=$ENV_MONGO_DOCDB
- nlp_duckling_url=http://duckling:8080
- tock_env=prod
- tock_bot_admin_rest_default_base_url=http://bot_api:8080
- tock_bot_compiler_service_url=http://kotlin_compiler:8080
- tock_configuration_bot_default_base_url=http://bot_api:8080
#remove this in production
- tock_https_env=false
- botadminverticle_body_limit=-1
# - tock_default_log_level=warn
# - tock_service_log_level=info
# - tock_database_log_level=warn
# - botadminverticle_base_href=/bot/admin
- JAVA_ARGS=$ENV_JAVA_ARGS
ports:
- "80:8080"
volumes:
- ./ssl:/ssl
restart: always
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/rest/admin/healthcheck"]
interval: 1m30s
timeout: 10s
retries: 3
start_period: 40s
nlp_api:
image: tock/nlp_api:$ENV_TAG
depends_on:
- duckling
environment:
- tock_mongo_url=$ENV_MONGO_URL
- tock_document_db_on=$ENV_MONGO_DOCDB
- nlp_duckling_url=http://duckling:8080
- tock_env=prod
- tock_web_use_default_cors_handler=true
- tock_web_use_default_cors_handler_with_credentials=false
- tock_web_use_default_cors_handler_url=*
# - tock_default_log_level=warn
# - tock_service_log_level=info
# - tock_database_log_level=warn
- JAVA_ARGS=$ENV_JAVA_ARGS
ports:
- "8888:8080"
volumes:
- ./ssl:/ssl
restart: always
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/rest/nlp/healthcheck"]
interval: 1m30s
timeout: 10s
retries: 3
start_period: 40s
deploy:
mode: replicated
replicas: 3
bot_api:
image: tock/bot_api:$ENV_TAG
depends_on:
- nlp_api
environment:
- tock_mongo_url=$ENV_MONGO_URL
- tock_document_db_on=$ENV_MONGO_DOCDB
- tock_nlp_service_url=http://nlp_api:8080
- tock_env=integ
- tock_websocket_enabled=true
# - tock_default_log_level=warn
# - tock_service_log_level=info
# - tock_database_log_level=warn
- JAVA_ARGS=$ENV_JAVA_ARGS
ports:
- "8080:8080"
volumes:
- ./ssl:/ssl
restart: always
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/healthcheck"]
interval: 1m30s
timeout: 10s
retries: 3
start_period: 40s