-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (42 loc) · 1022 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (42 loc) · 1022 Bytes
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
version: '2.3'
services:
matchvec:
container_name: ${USER}-matchvec
build:
context: ./
dockerfile: ./docker/cpu/${BACKEND}/Dockerfile
args:
- http_proxy=${http_proxy}
- https_proxy=${http_proxy}
env_file:
- docker/env.list
environment:
- http_proxy=${http_proxy}
- https_proxy=${http_proxy}
- no_proxy=${no_proxy}
- BACKEND=${BACKEND}
expose:
- ${APP_PORT}
volumes:
- ./:/app
- ${MODEL_PATH}:/model
networks:
- isolated_nw
labels:
- traefik.enable=true
- traefik.http.routers.matchvec.entrypoints=http
- traefik.http.routers.matchvec.rule=PathPrefix(`/matchvec`) || PathPrefix(`/swaggerui`)
- traefik.http.services.matchvec.loadbalancer.server.port=5000
ports:
- "5000:5000"
redis:
image: redis:alpine
container_name: ${USER}-redis
expose:
- 6379
networks:
- isolated_nw
networks:
isolated_nw:
external:
name: isolated_nw