-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
71 lines (71 loc) · 1.72 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
services:
mongodb-service:
image: "mongo"
container_name: mongodb-service
domainname: eauction-eastus-fseaz
ports:
- "27017:27017"
seller-service:
build: ./backend/Seller
image: eauctionfse3.azurecr.io/seller-service:latest
container_name: seller-service
domainname: eauction-eastus-fseaz
depends_on:
- mongodb-service
restart: always
environment:
PORT: 3001
MONGO_DB_URI: "mongodb://localhost:27017/local"
ports:
- "3001:3001"
deploy:
resources:
limits:
cpus: "0.50"
memory: 4g
reservations:
cpus: "0.25"
memory: 2g
buyer-service:
build: ./backend/Buyer
image: eauctionfse3.azurecr.io/buyer-service:latest
container_name: buyer-service
domainname: eauction-eastus-fseaz
depends_on:
- mongodb-service
restart: always
environment:
PORT: 3002
MONGO_DB_URI: "mongodb://localhost:27017/local"
ports:
- "3002:3002"
deploy:
resources:
limits:
cpus: "0.50"
memory: 4g
reservations:
cpus: "0.25"
memory: 2g
nginx-frontend:
restart: always
build: ./frontend/
image: eauctionfse3.azurecr.io/nginx-frontend:latest
container_name: nginx-frontend
domainname: eauction-eastus-fseaz
depends_on:
- seller-service
- buyer-service
environment:
SELLER_API_HOST: localhost:3001
BUYER_API_HOST: localhost:3002
ports:
- "80:80"
deploy:
resources:
limits:
cpus: "2"
memory: 4g
reservations:
cpus: "1"
memory: 2g