-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathdocker-compose_template.yml
113 lines (99 loc) · 3.16 KB
/
docker-compose_template.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
version: '3'
volumes:
api_store:
api-svc_logs_store:
boticon_store:
log_fluent_store:
emb_store:
kb_store:
services:
api-db:
image: $IMAGE_API_DB
volumes:
- api_store:/var/lib/mysql
ports:
- "13306:3306"
log-fluent:
image: $IMAGE_LOG_FLUENT
volumes:
- log_fluent_store:/logs
- "./fluent.conf:/fluentd/etc/fluent.conf"
api-ctrl:
image: $IMAGE_API_CTRL
depends_on:
- api-db
environment:
- API_CONNECTION_STRING=jdbc:mysql://api-db:3306/hutoma?user=hutoma_caller&password=$API_DB_HUTOMA_CALLER_PASSWORD&zeroDateTimeBehavior=convertToNull
- API_LOGGING_FLUENT_HOST=log-fluent
- API_LOGGING_FLUENT_PORT=24224
- API_RNN_ENABLED=false
api-svc:
image: $IMAGE_API_SVC
depends_on:
- api-db
volumes:
- api-svc_logs_store:/usr/local/tomcat/logs
- boticon_store:/boticon
ports:
- "8001:8080"
environment:
- API_ENCODING_KEY="$API_ENCODING_KEY"
- API_CONNECTION_STRING=jdbc:mysql://api-db:3306/hutoma?user=hutoma_caller&password=$API_DB_HUTOMA_CALLER_PASSWORD&zeroDateTimeBehavior=convertToNull
- API_LOGGING_FLUENT_HOST=log-fluent
- API_LOGGING_FLUENT_PORT=24224
- API_ENTITY_RECOGNIZER_URL=http://ai-entity-[lang]:9095/ner
- API_FIND_ENTITY_URL=http://ai-entity-[lang]:9095/findentities
- API_FB_APP_ID=$FACEBOOK_APP_ID
- API_FB_APP_SECRET=$FACEBOOK_APP_SECRET
- API_ANALYTICS_ES_URLS=http://log-es:9200
- API_RATELIMIT_CHAT_BURST=20.0
- API_RATELIMIT_CHAT_FREQUENCY=0.1
- API_CONTROLLER_URL=http://api-ctrl:8080/v1
- API_RNN_ENABLED=false
- API_LANGUAGES_AVAILABLE=$API_LANGUAGES_AVAILABLE
web-reverse_proxy:
image: $IMAGE_WEB_REVERSE_PROXY
depends_on:
- api-svc
ports:
- "8443:8443" # -> public Django
- "8444:8444" # -> public API
- "8501:8501" # -> admin Django
- "8502:8502" # -> full API
volumes:
- "./reverse_proxy/reverse_proxy_nginx.conf:/etc/nginx/nginx.conf"
web-dev_console2:
image: $IMAGE_WEB_CONSOLE
command: kubernetes/deployments/start.sh
volumes:
- kb_store:/kb
depends_on:
- api-svc
environment:
- ENVIRONMENT=production
- ALLOWED_HOSTS=$DJANGO_ALLOWED_HOSTS
- CONSOLE_SERVICE=$CONSOLE_SERVICE
- DJANGO_STATIC_HOST=$DJANGO_STATIC_HOST
- SECRET_KEY=$DJANGO_SECRET_KEY
- LEGACY_SALT=$DJANGO_LEGACY_SALT
- DATABASE_HOST=api-db
- DATABASE_NAME=django
- DATABASE_USER=django_caller
- DATABASE_PORT=3306
- DATABASE_PASSWORD=$API_DB_DJANGO_CALLER_PASSWORD
- CACHE_SERVICE_PASSWORD=$REDIS_SERVICE_PASSWORD
- EMAIL_HOST_USER=$EMAIL_HOST_USER
- EMAIL_HOST_PASSWORD=$EMAIL_HOST_PASSWORD
- API_ADMIN_TOKEN=$API_ADMIN_DEVTOKEN
- RECAPTCHA_PUBLIC_KEY=$DJANGO_RECAPTCHA_PUBLIC_KEY
- RECAPTCHA_PRIVATE_KEY=$DJANGO_RECAPTCHA_PRIVATE_KEY
- MEDIA_URL=$WEB_MEDIASERVER_URL/img/
- API_URL=http://api-svc:8080/v1
- WHITELISTED_EMAIL_DOMAINS=$WHITELISTED_EMAIL_DOMAINS
web-mediaserver:
image: $IMAGE_WEB_MEDIASERVER
volumes:
- boticon_store:/usr/share/nginx/media/img/boticon:ro
redis:
image: redis:3.2-alpine
command: ["redis-server", "--requirepass", "$REDIS_SERVICE_PASSWORD"]