-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
36 lines (36 loc) · 980 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
30
31
32
33
34
35
36
services:
predictor_a: &default
build:
context: container
args:
- MODEL4CONTAINER=./models/MLFLOW_AUTOGLUON
environment:
- DISABLE_NGINX=true
- GUNICORN_CMD_ARGS=--bind=0.0.0.0:${GUNICORN_PORT} --workers=1
- LOGURU_LEVEL=INFO
# volumes:
# - ./log:/app/log
expose:
- ${GUNICORN_PORT}
predictor_b:
<<: *default
build:
context: container
args:
- MODEL4CONTAINER=./models/MLFLOW_H2OAUTOML
coordinator:
<<: *default
build:
context: container
args:
- MODEL4CONTAINER=./models/MLFLOW_COORDINATOR
environment:
- GUNICORN_CMD_ARGS=--bind=0.0.0.0:${GUNICORN_PORT} --workers=1
- PREDICTOR_A_URI=http://predictor_a:${GUNICORN_PORT}/invocations
- PREDICTOR_B_URI=http://predictor_b:${GUNICORN_PORT}/invocations
- LOGURU_LEVEL=INFO
depends_on:
- predictor_a
- predictor_b
ports:
- "${API_PORT}:${GUNICORN_PORT}"