-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.override.yml
More file actions
114 lines (108 loc) · 2.87 KB
/
Copy pathdocker-compose.override.yml
File metadata and controls
114 lines (108 loc) · 2.87 KB
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
services:
# MVC
nmnb-blue:
image: nmnb/nmnb:prod-mvc
container_name: nmnb-blue
environment:
- SERVER_PORT=${nmnb_BLUE_PORT}
- SPRING_PROFILES_ACTIVE=prod
env_file:
- .prod_env
ports:
- "${nmnb_BLUE_PORT}:${MVC_INTERNAL_APP_PORT}"
healthcheck:
test: ["CMD", "curl", "-f", "http://nmnb-blue:${nmnb_BLUE_PORT}/health"]
interval: 30s
timeout: 10s
retries: 3
networks:
- nmnb_network
nmnb-green:
image: nmnb/nmnb:prod-mvc
container_name: nmnb-green
environment:
- SERVER_PORT=${nmnb_GREEN_PORT}
- SPRING_PROFILES_ACTIVE=prod
env_file:
- .prod_env
ports:
- "${nmnb_GREEN_PORT}:${MVC_INTERNAL_APP_PORT}"
healthcheck:
test: [ "CMD", "curl", "-f", "http://nmnb-green:${nmnb_GREEN_PORT}/health" ]
interval: 30s
timeout: 10s
retries: 3
networks:
- nmnb_network
dev-nmnb:
image: nmnb/nmnb:dev-mvc
container_name: dev-nmnb
environment:
- SERVER_PORT=${nmnb_DEV_PORT}
- SPRING_PROFILES_ACTIVE=dev
env_file:
- .dev_env
ports:
- "${nmnb_DEV_PORT}:${MVC_INTERNAL_DEV_APP_PORT}"
healthcheck:
test: [ "CMD", "curl", "-f", "http://dev-nmnb:${nmnb_DEV_PORT}/health" ]
interval: 30s
timeout: 10s
retries: 3
networks:
- nmnb_network
# WebFlux
nmnb-webflux-blue:
image: nmnb/nmnb:prod-webflux
container_name: nmnb-webflux-blue
environment:
- SERVER_PORT=${nmnb_WEBFLUX_BLUE_PORT}
- SPRING_PROFILES_ACTIVE=prod
env_file:
- .prod_env
ports:
- "${nmnb_WEBFLUX_BLUE_PORT}:${WEBFLUX_INTERNAL_APP_PORT}"
healthcheck:
test: [ "CMD", "curl", "-f", "http://nmnb-webflux-blue:${nmnb_WEBFLUX_BLUE_PORT}/health" ]
interval: 30s
timeout: 10s
retries: 3
networks:
- nmnb_network
nmnb-webflux-green:
image: nmnb/nmnb:prod-webflux
container_name: nmnb-webflux-green
environment:
- SERVER_PORT=${nmnb_WEBFLUX_GREEN_PORT}
- SPRING_PROFILES_ACTIVE=prod
env_file:
- .prod_env
ports:
- "${nmnb_WEBFLUX_GREEN_PORT}:${WEBFLUX_INTERNAL_APP_PORT}"
healthcheck:
test: [ "CMD", "curl", "-f", "http://nmnb-webflux-green:${nmnb_WEBFLUX_GREEN_PORT}/health" ]
interval: 30s
timeout: 10s
retries: 3
networks:
- nmnb_network
dev-nmnb-webflux:
image: nmnb/nmnb:dev-webflux
container_name: dev-nmnb-webflux
environment:
- SERVER_PORT=${nmnb_WEBFLUX_DEV_PORT}
- SPRING_PROFILES_ACTIVE=dev
env_file:
- .dev_env
ports:
- "${nmnb_WEBFLUX_DEV_PORT}:${WEBFLUX_INTERNAL_DEV_APP_PORT}"
healthcheck:
test: [ "CMD", "curl", "-f", "http://dev-nmnb-webflux:${nmnb_WEBFLUX_DEV_PORT}/health" ]
interval: 30s
timeout: 10s
retries: 3
networks:
- nmnb_network
networks:
nmnb_network:
external: true