-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.deploy.yml
56 lines (51 loc) · 1.28 KB
/
docker-compose.deploy.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
version: '3'
services:
docker-proxy:
environment:
CONTAINERS: 1
image: tecnativa/docker-socket-proxy
networks:
- traefik
ports:
- 2375
volumes:
- /var/run/docker.sock:/var/run/docker.sock
reverse-proxy:
depends_on:
- docker-proxy
image: traefik:v2.2
networks:
- default
- traefik
ports:
- "80:80"
- "443:443"
restart: always
volumes:
- /opt/traefik/certs/:/certs/:ro
- /opt/traefik/traefik.yaml:/etc/traefik/traefik.yaml
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(`kaldi-web.loria.fr`) && PathPrefix(`/models`)"
- "traefik.http.routers.model_server.tls=true"
networks:
- default
restart: always
volumes:
- ./custom_models:/model_server/public:ro
webserver:
image: registry.gitlab.inria.fr/kaldi.web/kaldi-wasm/webapp:latest
networks:
- default
restart: always
labels:
- "traefik.enable=true"
- "traefik.http.routers.webserver.rule=Host(`kaldi-web.loria.fr`)"
- "traefik.http.routers.webserver.tls=true"
networks:
traefik:
internal: true
default:
driver: bridge