This repository was archived by the owner on Jan 29, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
134 lines (127 loc) · 3.26 KB
/
docker-compose.yaml
File metadata and controls
134 lines (127 loc) · 3.26 KB
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
version: "3.3"
services:
# message queue container
queue:
image: rabbitmq:3-management-alpine
container_name: vocolab_queue
logging:
driver: none
ports:
- "127.0.0.1:5672:5672"
- "127.0.0.1:15672:15672"
environment:
RABBITMQ_DEFAULT_USER: vocolab
RABBITMQ_DEFAULT_PASS: admin
RABBITMQ_DEFAULT_VHOST: vocolab
sqlite3:
image: nouchka/sqlite3
profiles:
- debug
container_name: sqlite3_cli
command: /app-data/vocolab.db
volumes:
- app-data:/app-data
# API container
api:
restart: unless-stopped
stop_grace_period: 30s
image: "voco-api:latest"
container_name: vocolab_api
depends_on:
- queue
build:
context: .
dockerfile: containers/api.Dockerfile
ports:
- "127.0.0.1:8000:8000"
env_file:
- containers/dockerconfig/docker.env
environment:
# DOCKER PATH ENV
VC_GUNICORN_WORKERS: 4
VC_API_BASE_URL: "https://api.vocolab.com"
VC_version: "v0.5"
VC_maintainers: "CoML Team, INRIA, ENS, EHESS, CNRS"
VC_admin_email: "contact@zerospeech.com"
VC_MAIL_USERNAME: "noreply@zerospeech.com"
VC_MAIL_PASSWORD: "Bootphon2021"
VC_MAIL_FROM: "noreply@zerospeech.com"
VC_MAIL_FROM_NAME: "Zerospeech Challenge"
VC_MAIL_PORT: 587
VC_MAIL_SERVER: "ssl0.ovh.net"
VC_MAIL_TLS: "True"
VC_MAIL_SSL: "False"
VC_RPC_USERNAME: "vocolab"
VC_RPC_PASSWORD: "admin"
VC_RPC_HOST: "vocolab_queue"
volumes:
- app-data:/app-data
- ./samples/:/samples
- ./containers/app-data/evaluators:/evaluators
# Evaluation worker
eval_worker:
restart: unless-stopped
stop_grace_period: 180s
image: "voco-worker:latest"
container_name: vocolab_eval_worker
command:
# worker type
- "worker"
# log-level
- '--loglevel=INFO'
# process pool type
- "--pool=prefork"
# number of concurrent processes
- "--concurrency=2"
# name of queue
- "-Q"
- "evaluation-queue"
depends_on:
- queue
build:
context: .
dockerfile: containers/worker.Dockerfile
env_file:
- containers/dockerconfig/docker.env
environment:
VC_API_BASE_URL: "https://api.vocolab.com"
VC_RPC_USERNAME: "vocolab"
VC_RPC_PASSWORD: "admin"
VC_RPC_HOST: "vocolab_queue"
volumes:
- app-data:/app-data
- ./containers/app-data/evaluators:/evaluators
# Evaluation worker
update_worker:
restart: unless-stopped
stop_grace_period: 180s
image: "voco-worker:latest"
container_name: vocolab_update_worker
command:
# worker type
- "worker"
# log-level
- '--loglevel=INFO'
# process pool type
- "--pool=prefork"
# number of concurrent processes
- "--concurrency=2"
# name of queue
- "-Q"
- "update-queue"
depends_on:
- queue
build:
context: .
dockerfile: containers/worker.Dockerfile
env_file:
- containers/dockerconfig/docker.env
environment:
VC_API_BASE_URL: "https://api.vocolab.com"
VC_RPC_USERNAME: "vocolab"
VC_RPC_PASSWORD: "admin"
VC_RPC_HOST: "vocolab_queue"
volumes:
- app-data:/app-data
volumes:
app-data: