-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (48 loc) · 1004 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
version: '3'
services:
postgres:
container_name: myDBPostgres
image: postgres:latest
ports:
- "32001:5432"
environment:
POSTGRES_DB: mlops
POSTGRES_USER: mlops
POSTGRES_PASSWORD: mlops
volumes:
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U mlops"]
interval: 10s
timeout: 5s
retries: 5
server:
container_name: server
image: mlops-server
links:
- "postgres"
depends_on:
postgres:
condition: service_healthy
build:
context: ./server
dockerfile: Dockerfile
ports:
- "8000:8000"
client:
image: mlops-client
build:
context: ./client
dockerfile: Dockerfile
container_name: client
ports:
- "8501:8501"
mlflow:
build:
context: ./mlflow
dockerfile: Dockerfile
container_name: mlflow
ports:
- "5001:5001"
volumes:
- ./mlflow:/app