-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
30 lines (28 loc) · 947 Bytes
/
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
version: '3'
services:
reverse-proxy:
image: traefik:v2.2
command:
- "--api.insecure=true"
- "--providers.docker"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
ports:
- "80:80"
- "8081:8080" # traefik API
volumes:
- /var/run/docker.sock:/var/run/docker.sock
model_server:
image: registry.gitlab.inria.fr/kaldi.web/kaldi-wasm/db_server:latest
labels:
- "traefik.enable=true"
- "traefik.http.routers.model_server.rule=Host(`localhost`) && PathPrefix(`/models`)"
- "traefik.http.routers.model_server.entrypoints=web"
volumes:
- ./custom_models:/model_server/public:ro
webserver:
image: registry.gitlab.inria.fr/kaldi.web/kaldi-wasm/webapp:latest
labels:
- "traefik.enable=true"
- "traefik.http.routers.webserver.rule=Host(`localhost`)"
- "traefik.http.routers.webserver.entrypoints=web"