-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
98 lines (91 loc) · 1.95 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
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.4'
services:
db:
image: mysql:5.7.35
volumes:
- db-data:/var/lib/mysql
env_file: 'env.dev'
deploy:
restart_policy:
condition: on-failure
resources:
limits:
cpus: '0.5'
ports:
- 3306:3306
gatewayservice:
image: mydiamonds.azurecr.io/gatewayservice
container_name: gatewayservice
build: ../gateway_service
domainname: "diamondsproject"
ports:
- 5001:5001
env_file: 'env.dev'
deploy:
restart_policy:
condition: on-failure
resources:
limits:
cpus: '0.5'
depends_on:
- alertservice
- dataservice
- fitservice
dataservice:
image: mydiamonds.azurecr.io/dataservice
container_name: dataservice
build: ../data_service
ports:
- 5002:5002
env_file: 'env.dev'
deploy:
restart_policy:
condition: on-failure
resources:
limits:
cpus: '0.5'
depends_on:
- db
- alertservice
alertservice:
image: mydiamonds.azurecr.io/alertservice
container_name: alertservice
build: ../alerts_service
ports:
- 5005:5005
env_file: 'env.dev'
deploy:
restart_policy:
condition: on-failure
resources:
limits:
cpus: '0.5'
fitservice:
image: mydiamonds.azurecr.io/fitservice
container_name: fitservice
build: ../fit_service
volumes:
- fitdirectory:/app/files
ports:
- 5004:5004
env_file: 'env.dev'
deploy:
restart_policy:
condition: on-failure
resources:
limits:
cpus: '0.5'
depends_on:
- alertservice
- dataservice
volumes:
fitdirectory:
driver: azure_file
driver_opts:
share_name: modelfileshare
storage_account_name: diamondsstorage
db-data:
driver: azure_file
driver_opts:
share_name: myfileshare
storage_account_name: diamondsstorage