-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
79 lines (73 loc) · 1.72 KB
/
docker-compose.yaml
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
version: "3.8"
volumes:
postgresql-mlflow-data:
mlflow-artifact-store:
x-app-template: &APP_TEMPLATE
user: "${USER_ID:-1000}"
hostname: "${HOST_NAME:-emkademy}"
image: cybulde-model
build:
context: .
dockerfile: ./docker/Dockerfile
args:
USER_NAME: "${USER_NAME:-kyuksel}"
USER_ID: "${USER_ID:-1000}"
env_file:
- .envs/.postgres
- .envs/.mlflow-common
- .envs/.mlflow-dev
volumes:
- ./:/app/
- mlflow-artifact-store:/mlflow-artifact-store
- ~/.config/gcloud/:/home/${USER_NAME}/.config/gcloud
ipc: host
init: true
services:
mlflow-db:
container_name: mlflow-backend-store
image: postgres:14
env_file:
- .envs/.mlflow-common
- .envs/.mlflow-dev
- .envs/.postgres
volumes:
- postgresql-mlflow-data:/var/lib/postgresql/data
ports:
- 5433:5432
profiles:
- dev
app-dev:
<<: *APP_TEMPLATE
container_name: cybulde-model-dev-container
ports:
- ${LOCAL_DEV_MLFLOW_SERVER_PORT}:${LOCAL_DEV_MLFLOW_SERVER_PORT}
- 8080:8080
- 8888:8888
- 8001:8001
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
profiles:
- dev
app-prod:
<<: *APP_TEMPLATE
container_name: cybulde-model-prod-container
env_file:
- .envs/.mlflow-common
- .envs/.mlflow-prod
- .envs/.infrastructure
ports:
- ${PROD_MLFLOW_SERVER_PORT}:${PROD_MLFLOW_SERVER_PORT}
profiles:
- prod
app-ci:
<<: *APP_TEMPLATE
container_name: cybulde-model-ci-container
ports:
- ${LOCAL_DEV_MLFLOW_SERVER_PORT}:${LOCAL_DEV_MLFLOW_SERVER_PORT}
profiles:
- ci