File tree Expand file tree Collapse file tree 2 files changed +14
-20
lines changed Expand file tree Collapse file tree 2 files changed +14
-20
lines changed Original file line number Diff line number Diff line change 1- version : ' 3.9'
2-
1+ version : " 3.9"
32services :
4- # Mongodb service
5- mongo_db :
6- container_name : db_container
7- image : mongo:latest
3+ django :
4+ build : ./server/django
85 ports :
9- - 27017:27017
10- restart : always
11- volumes :
12- - mongo_data:/data/db
13-
14- # Node api service
15- api :
16- image : nodeapp
6+ - " 8000:8000"
7+ express-service :
8+ build : ./server/express-service
179 ports :
18- - 3030:3030
19- depends_on :
20- - mongo_db
21-
22- volumes :
23- mongo_data : {}
10+ - " 8080:8080"
Original file line number Diff line number Diff line change 2626 ports :
2727 - containerPort : 8000
2828 protocol : TCP
29+ resources :
30+ requests :
31+ cpu : " 100m"
32+ memory : " 128Mi"
33+ limits :
34+ cpu : " 250m"
35+ memory : " 256Mi"
2936 restartPolicy : Always
You can’t perform that action at this time.
0 commit comments