-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
66 lines (59 loc) · 1.7 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
version: '3'
services:
app:
image: speech2text
restart: always
build: ./docker
volumes:
- ./:/mnt/app
- ./var/data/key.json:/mnt/key.json
working_dir: /mnt/app
queue:
image: speech2text
restart: always
build: ./docker
volumes:
- ./:/mnt/app
- ./var/data/key.json:/mnt/key.json
working_dir: /mnt/app
environment:
WS_HOST: ws
command: "bin/console enqueue:consume --setup-broker -vvv"
ws:
image: speech2text
restart: always
build: ./docker
volumes:
- ./:/mnt/app
- ./var/data/key.json:/mnt/key.json
ports:
- "${WS_PORT}:${WS_PORT}"
working_dir: /mnt/app
environment:
WS_HOST: 0.0.0.0
command: "bin/console gos:websocket:server"
mysql:
image: mysql:5.7
restart: always
volumes:
- mysql-data:/var/lib/mysql
- ./docker/mysql:/etc/mysql/conf.d
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: speech2text
redis:
image: redis:4.0
restart: always
server:
image: nginx:1.15-alpine
volumes:
- ./docker/nginx/template.nginx.conf:/etc/nginx/conf.d/template.nginx
- ./public:/mnt/app/public
ports:
- "80:80"
environment:
- NGINX_HOST=www.speech2text.com
- NGINX_PORT=80
command: /bin/sh -c "envsubst '$$NGINX_HOST $$NGINX_PORT' < /etc/nginx/conf.d/template.nginx > /etc/nginx/conf.d/default.conf && exec nginx -g 'daemon off;'"
volumes:
mysql-data: ~