-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathdocker-compose-multi-stage-build.yml
136 lines (136 loc) · 3.35 KB
/
docker-compose-multi-stage-build.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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
version: '3.2'
services:
api-gateway:
container_name: api-gateway
build:
context: api-gateway
args:
APP_VERSION: $APP_VERSION
dockerfile: Dockerfile.multistage
expose:
- 8755
ports:
- 8755:8755
volumes:
- cloud-native-volume:/tmp
networks:
- envcn_cloud-native-network
currency-exchnage:
container_name: c-exchnage
build:
context: currency-exchange
args:
APP_VERSION: $APP_VERSION
dockerfile: Dockerfile.multistage
expose:
- 8000
ports:
- 8000:8000
volumes:
- cloud-native-volume:/tmp
networks:
- envcn_cloud-native-network
depends_on:
- api-gateway
math:
container_name: math
build:
context: math
args:
APP_VERSION: $APP_VERSION
dockerfile: Dockerfile.multistage
expose:
- 8100
ports:
- 8100:8100
volumes:
- cloud-native-volume:/tmp
networks:
- envcn_cloud-native-network
depends_on:
- api-gateway
country:
container_name: country
build:
context: country
args:
APP_VERSION: $APP_VERSION
dockerfile: Dockerfile.multistage
expose:
- 8300
ports:
- 8300:8300
volumes:
- cloud-native-volume:/tmp
networks:
- envcn_cloud-native-network
depends_on:
- api-gateway
currency-conversion:
container_name: currency-conversion
build:
context: currency-conversion
args:
APP_VERSION: $APP_VERSION
dockerfile: Dockerfile.multistage
expose:
- 5200
ports:
- 5200:5200
volumes:
- cloud-native-volume:/tmp
networks:
- envcn_cloud-native-network
depends_on:
- api-gateway
user:
container_name: user
build:
context: user
args:
APP_VERSION: $APP_VERSION
dockerfile: Dockerfile.multistage
expose:
- 8900
ports:
- 8900:8900
volumes:
- cloud-native-volume:/tmp
networks:
- envcn_cloud-native-network
depends_on:
- api-gateway
audit:
container_name: audit
build:
context: audit
args:
APP_VERSION: $APP_VERSION
dockerfile: Dockerfile.multistage
expose:
- 8950
ports:
- 8950:8950
volumes:
- cloud-native-volume:/tmp
networks:
- envcn_cloud-native-network
depends_on:
- api-gateway
ui:
container_name: ui
build:
context: ./clients/3cn-react-client/
args:
ENV: dev
depends_on:
- currency-conversion
ports:
- '3000:80'
networks:
- envcn_cloud-native-network
volumes:
cloud-native-volume:
networks:
envcn_cloud-native-network:
external: true