-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose-model-registry.yml
98 lines (93 loc) · 2.39 KB
/
docker-compose-model-registry.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
version: '3.7'
services:
mlflow_server:
restart: always
build:
context: ./mlflow
dockerfile: Dockerfile-mlflow
image: mlflow_server
container_name: mlflow_server
ports:
- 5051:5050
networks:
- backend
volumes:
- /tmp/mlopsdb:/tmp/mlopsdb
- /tmp/mlopsartifacts:/tmp/mlopsartifacts
- /tmp/store:/tmp/store
prefect_server:
restart: always
build:
context: ./model_orchestration
dockerfile: Dockerfile-prefect
logging:
driver: none
image: "prefect_server"
container_name: "prefect_server"
ports:
- "4200:4200"
- "8080:8080"
env_file:
- .env
networks:
- backend
volumes:
- /tmp/mlopsdb:/tmp/mlopsdb
- /tmp/mlopsartifacts:/tmp/mlopsartifacts
- /tmp/store:/tmp/store
agent:
restart: always
depends_on:
- prefect_server
- localstack
- mlflow_server
build:
context: ./model_orchestration
dockerfile: Dockerfile-prefect-agent
image: "prefect_agent_1"
container_name: "prefect_agent_1"
environment:
REPORT_TIME_WINDOW_MINUTES: 180
REPORTS_FOLDER: /tmp/mlreports
MONGODB_ADDRESS: mongodb://mongo.:27017/
volumes:
- /tmp/mlopsdb:/tmp/mlopsdb
- /tmp/mlopsartifacts:/tmp/mlopsartifacts
- /tmp/store:/tmp/store
- /tmp/mlreports:/tmp/mlreports
networks:
- backend
reports_nginx_server:
container_name: "reports_nginx_server"
image: "reports_nginx_server"
build:
context: reporting/nginx
dockerfile: Dockerfile
depends_on:
- prefect_server
volumes:
- /tmp/mlreports:/tmp/mlreports
ports:
- "8888:8888"
networks:
- backend
localstack:
container_name: localstack_main
image: localstack/localstack
hostname: aws
ports:
- "4566:4566" # LocalStack Gateway
- "4510-4559:4510-4559" # external services port range
environment:
- SERVICES=s3,kinesis
- AWS_DEFAULT_REGION=eu-west-1
- AWS_ACCESS_KEY_ID=ID1
- LOCALSTACK_HOSTNAME=aws
networks:
- backend
- external
networks:
backend:
driver: bridge
external:
driver: bridge