-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-dev.yml
executable file
·101 lines (89 loc) · 2.74 KB
/
docker-compose-dev.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
version: "3.4"
x-database-credentials: &database-credentials
DB_HOST: "${DB_HOST}"
DB_PORT: "5432"
DB_USER: "${DB_USER}"
DB_PASSWORD: "${DB_PASSWORD}"
DB_LOGIN_DB: "${DB_LOGIN_DB}"
x-rabbitmq-credentials: &rabbitmq-credentials
RABBITMQ_HOST: "rabbit"
RABBITMQ_USERNAME: "${RABBITMQ_USERNAME}"
RABBITMQ_PASSWORD: ${RABBITMQ_PASSWORD}
x-redis-credentials: &redis-credentials
REDIS_HOST: "redis"
REDIS_PORT: "6379"
REDIS_PASSWORD: ${REDIS_PASSWORD}
REDIS_DB: "1"
REDIS_CACHE_DB: "2"
ACCEPTABLE_QUERY_COUNT_NUMBER: "50000"
x-s3-credentials: &s3-credentials
AWS_SECRET_ACCESS_KEY: "${AWS_SECRET_ACCESS_KEY}"
AWS_ACCESS_KEY_ID: "${AWS_ACCESS_KEY_ID}"
AWS_DEFAULT_REGION: "${AWS_DEFAULT_REGION}"
BUCKET_NAME: "${BUCKET_NAME}"
AWS_ENDPOINT_URL: "${AWS_ENDPOINT_URL}"
x-telegram-credentials: &telegram-credentials
TELEGRAM_ACCESS_TOKEN: "${TELEGRAM_ACCESS_TOKEN}"
TELEGRAM_VERIFY: "${TELEGRAM_VERIFY}"
TELEGRAM_WEB_HOOK: "${TELEGRAM_WEB_HOOK}"
x-facebook-credentials: &facebook-credentials
FACEBOOK_VERIFY: "${FACEBOOK_VERIFY}"
FACEBOOK_SECRET: "${FACEBOOK_SECRET}"
FACEBOOK_PAGE_ACCESS_TOKEN: "${FACEBOOK_PAGE_ACCESS_TOKEN}"
x-nginx-host-variables: &nginx-host-variables
RASA_X_HOST: "rasa-x:5002"
RASA_USER_APP: "action-server:5055"
RASA_PRODUCTION_HOST: "rasa-production:5005"
x-rasax-credentials: &rasax-credentials
RASA_X_HOST: "http://rasa-x:5002"
RASA_X_USERNAME: ${RASA_X_USERNAME}
RASA_X_PASSWORD: ${RASA_X_PASSWORD}
RASA_X_TOKEN: ${RASA_X_TOKEN}
JWT_SECRET: ${JWT_SECRET}
RASA_USER_APP: "http://action-server:5055"
RASA_PRODUCTION_HOST: "http://rasa-production:5005"
RASA_WORKER_HOST: "http://rasa-worker:5005"
RASA_TOKEN: ${RASA_TOKEN}
x-rasa-credentials: &rasa-credentials
<<: *rabbitmq-credentials
<<: *rasax-credentials
<<: *database-credentials
<<: *redis-credentials
<<: *s3-credentials
<<: *telegram-credentials
<<: *facebook-credentials
RASA_TOKEN: ${RASA_TOKEN}
RASA_MODEL_PULL_INTERVAL: 10
RABBITMQ_QUEUE: "rasa_production_events"
RASA_TELEMETRY_ENABLED: ${RASA_TELEMETRY_ENABLED}
x-rasa-services: &default-rasa-service
restart: always
image: "jrtec/rasa-spacy-es"
volumes:
- ./.config:/.config
expose:
- "5005"
command: >
x
--no-prompt
--production
--config-endpoint http://rasa-x:5002/api/config?token=${RASA_X_TOKEN}
--port 5005
--jwt-method HS256
--jwt-secret ${JWT_SECRET}
--auth-token '${RASA_TOKEN}'
--cors "*"
depends_on:
- rasa-x
- rabbit
- redis
services:
duckling:
container_name: duckling
restart: always
image: "rasa/duckling:${RASA_DUCKLING_VERSION}"
expose:
- "8000"
ports:
- "8000:8000"
command: ["duckling-example-exe", "--no-access-log", "--no-error-log"]