-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
75 lines (72 loc) · 1.58 KB
/
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
services:
fastapi:
container_name: ml-fastapi
build:
context: .
dockerfile: ./ml/Dockerfile
ports:
- "8000:8000"
volumes:
- ./ml:/app
depends_on:
- mlflow
environment:
- MLFLOW_TRACKING_URI=http://mlflow:5001
- experiment_name=song_recommender
- bucket_name=smc-finalproject
- region=eu-north-1
mlflow:
container_name: ml-mlflow
build:
context: .
dockerfile: ./ml/mlflow.Dockerfile
ports:
- "5001:5001"
volumes:
- ./ml/versioning/mlruns:/mlflow/mlruns
- ./ml/versioning/mlflow.db:/mlflow/mlflow.db
- ./ml/versioning/mlflow_config.yaml:/mlflow/mlflow_config.yaml
backend:
container_name: backend-general
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "3000:3000"
depends_on:
postgres:
condition: service_healthy
postgres:
container_name: postgres-container
image: 'postgres:latest'
volumes:
- postgresVolume:/var/lib/postgresql/data
env_file:
- ./backend/.env
ports:
- "5432:5432"
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 5s
timeout: 5s
retries: 5
restart: always
frontend:
container_name: frontend-vue
build:
context: ./frontend/qirec-front
dockerfile: Dockerfile
ports:
- "8080:80"
depends_on:
- backend
mongo:
image: mongo
container_name: mongo-db
ports:
- "27017:27017"
volumes:
- mongo-data:/data/db
volumes:
postgresVolume:
mongo-data: