-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yaml
101 lines (93 loc) · 2.34 KB
/
docker-compose.yaml
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
version: '3'
services:
serviceregistry:
image: 'ousmane1999/service-registry:latest'
container_name: 'service-registry'
ports:
- '8761:8761'
networks:
- sangary
configserver:
image: 'ousmane1999/config-server:latest'
container_name: 'config-server'
ports:
- '9296:9296'
networks:
- sangary
environment:
- EUREKA_URI=http://serviceregistry:8761/eureka
healthcheck:
test: [ "CMD", "curl", "-f", "http://configserver:9296/actuator/health" ]
interval: 10s
timeout: 5s
retries: 5
depends_on:
- serviceregistry
cloudgateway:
image: 'ousmane1999/api-gateway:latest'
container_name: 'cloud-gateway'
ports:
- '8080:8080'
networks:
- sangary
environment:
- EUREKA_SERVER_ADDRESS=http://serviceregistry:8761/eureka
- CONFIG_SERVER_URL=configserver
depends_on:
configserver:
condition: service_healthy
accountservice:
image: 'ousmane1999/account-service:latest'
container_name: 'account-service'
ports:
- '6060:6060'
networks:
- sangary
environment:
- EUREKA_SERVER_ADDRESS=http://serviceregistry:8761/eureka
- CONFIG_SERVER_URL=configserver
depends_on:
configserver:
condition: service_healthy
# - serviceregistry
# - cloudgateway
customerservice:
image: 'ousmane1999/customer-service:latest'
container_name: 'customer-service'
ports:
- "8083:8083"
networks:
- sangary
environment:
- EUREKA_SERVER_ADDRESS=http://serviceregistry:8761/eureka
- CONFIG_SERVER_URL=configserver
depends_on:
configserver:
condition: service_healthy
# - serviceregistry
# - cloudgateway
webconsumerapp:
image: 'ousmane1999/consumer-web-app:latest'
container_name: 'consumer-web-app'
ports:
- '6464:6464'
networks:
- sangary
environment:
- EUREKA_SERVER_ADDRESS=http://serviceregistry:8761/eureka
- CONFIG_SERVER_URL=configserver
depends_on:
configserver:
condition: service_healthy
account_loadbalancer:
image: 'tutum/haproxy'
container_name: 'haproxy-loadbalancer'
links:
- accountservice
- customerservice
- webconsumerapp
ports:
- "6061:6061"
networks:
sangary:
driver: "bridge"