-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
104 lines (96 loc) · 2.53 KB
/
docker-compose.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
version: '3.7'
services:
botov_backend: &botov_backend
container_name: botov_backend_container
build:
context: ./
dockerfile: ./docker/django/Dockerfile
command: "bash -c 'sleep 5 && ./manage.py migrate && ./manage.py search_index --rebuild -f && ./manage.py runserver 0.0.0.0:8000'"
env_file:
- .env
volumes:
- ./project:/code/project
- ./docker/speech/data:/usr/share/RHVoice-data
restart: on-failure
ports:
- "8000:8000"
depends_on:
- botov_celery
- botov_elasticsearch
- botov_postgres
- botov_redis
botov_celery:
container_name: botov_celery
<<: *botov_backend
command: "celery worker -A project.settings"
ports: []
depends_on:
- botov_redis
- botov_elasticsearch
botov_flower:
container_name: botov_flower
<<: *botov_backend
command: "celery -A project.settings flower"
ports:
- "5555:5555"
depends_on:
- botov_celery
botov_elasticsearch:
container_name: botov_elasticsearch
build:
context: ./
dockerfile: ./docker/elasticsearch/Dockerfile
environment:
- node.name=botov_elasticsearch
- cluster.initial_master_nodes=botov_elasticsearch
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms1024m -Xmx1024m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- ./docker/elasticsearch/synonym.txt:/usr/share/elasticsearch/config/analysis/synonym.txt:ro
restart: on-failure
ports:
- 9200:9200
botov_postgres:
container_name: botov_postgres
image: postgres
volumes:
- ./docker/postgres/data:/var/lib/postgresql/data
restart: on-failure
ports:
- 5432:5432
environment:
POSTGRES_PASSWORD: root
botov_kibana:
image: docker.elastic.co/kibana/kibana:7.4.0
container_name: botov_kibana
environment:
ELASTICSEARCH_HOSTS: http://botov_elasticsearch:9200
restart: on-failure
ports:
- 5601:5601
depends_on:
- botov_elasticsearch
botov_redis:
container_name: botov_redis
image: redis:latest
volumes:
- ./docker/redis/data:/data
restart: on-failure
ports:
- "6379:6379"
botov_speech_synthesis:
container_name: botov_speech_synthesis
command: python3 /code/speech/app.py
build:
context: ./
dockerfile: ./docker/speech/Dockerfile
volumes:
- ./speech:/code/speech
- ./docker/speech/data:/usr/share/RHVoice-data
ports:
- "5000:5000"