-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
79 lines (75 loc) · 2.21 KB
/
docker-compose.yaml
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
version: '3.7'
services:
english-api:
build:
context: .
dockerfile: Dockerfile.english
container_name: 'deepspeech_english_api'
ports:
- '0.0.0.0:8001:5000'
restart: 'always'
volumes:
- deepspeech-english-data:/app/
environment:
- SANIC_DEBUG=${SANIC_DEBUG}
- SANIC_TESTING=${SANIC_TESTING}
- SANIC_HOST=${SANIC_HOST}
- SANIC_PORT=${SANIC_PORT}
- SANIC_ENV=${SANIC_ENV}
- SECRET_KEY=${SECRET_KEY}
- DATABASE_URI=${DATABASE_URI}
- SANIC_WEBSOCKET_MAX_SIZE=${SANIC_WEBSOCKET_MAX_SIZE}
- SANIC_WEBSOCKET_PING_TIMEOUT=${SANIC_WEBSOCKET_PING_TIMEOUT}
- SANIC_RESPONSE_TIMEOUT=${SANIC_RESPONSE_TIMEOUT}
- SANIC_REQUEST_TIMEOUT=${SANIC_REQUEST_TIMEOUT}
networks:
- infrastructure_default
- internal_infrastructure
kinyarwanda-api:
build:
context: .
dockerfile: Dockerfile.kinyarwanda
container_name: 'deepspeech_kinyarwanda_api'
ports:
- '0.0.0.0:8000:5000'
restart: 'always'
volumes:
- deepspeech-kinyarwanda-data:/app/
environment:
- SANIC_DEBUG=${SANIC_DEBUG}
- SANIC_TESTING=${SANIC_TESTING}
- SANIC_HOST=${SANIC_HOST}
- SANIC_PORT=${SANIC_PORT}
- SANIC_ENV=${SANIC_ENV}
- SECRET_KEY=${SECRET_KEY}
- DATABASE_URI=${DATABASE_URI}
- SANIC_WEBSOCKET_MAX_SIZE=${SANIC_WEBSOCKET_MAX_SIZE}
- SANIC_WEBSOCKET_PING_TIMEOUT=${SANIC_WEBSOCKET_PING_TIMEOUT}
- SANIC_RESPONSE_TIMEOUT=${SANIC_RESPONSE_TIMEOUT}
- SANIC_REQUEST_TIMEOUT=${SANIC_REQUEST_TIMEOUT}
networks:
- infrastructure_default
- internal_infrastructure
deepspeech-db:
image: postgres
volumes:
- database-data:/var/lib/postgresql/data
restart: always
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
networks:
- internal_infrastructure
networks:
infrastructure_default: # external network
external: true
internal_infrastructure: #internal network
internal: true
volumes:
deepspeech-english-data:
driver: local
deepspeech-kinyarwanda-data:
driver: local
database-data:
driver: local