-
Notifications
You must be signed in to change notification settings - Fork 38
/
docker-compose.yml
116 lines (116 loc) · 2.79 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
version: "3"
services:
zipkin-server:
container_name: zipkin-server
image: openzipkin/zipkin
ports:
- 9411:9411
networks:
- spring-cloud-network
zookeeper:
image: 'bitnami/zookeeper:latest'
ports:
- '2181:2181'
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
networks:
- spring-cloud-network
kafka:
image: 'bitnami/kafka:latest'
ports:
- '9092:9092'
environment:
- KAFKA_BROKER_ID=1
- KAFKA_CFG_LISTENERS=PLAINTEXT://:9092
- KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://127.0.0.1:9092
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
- ALLOW_PLAINTEXT_LISTENER=yes
depends_on:
- zookeeper
networks:
- spring-cloud-network
config-server:
container_name: config-server
build:
context: config-server
dockerfile: Dockerfile
image: config-server:latest
ports:
- 8101:8101
networks:
- spring-cloud-network
eureka-server:
container_name: eureka-server
build:
context: eureka-server
dockerfile: Dockerfile
image: eureka-server:latest
ports:
- 8102:8102
networks:
- spring-cloud-network
springcloudgateway-server:
container_name: springcloudgateway-server
build:
context: springcloudgateway-server
dockerfile: Dockerfile
image: springcloudgateway-server:latest
ports:
- 8004:8004
depends_on:
- zipkin-server
networks:
- spring-cloud-network
microservice-produits:
container_name: microservice-produits
build:
context: microservice-produits
dockerfile: Dockerfile
image: microservice-produits:latest
ports:
- 8001:8001
depends_on:
- zipkin-server
networks:
- spring-cloud-network
microservice-commandes-consumer:
container_name: microservice-commandes
build:
context: microservice-commandes-consumer
dockerfile: Dockerfile
image: microservice-commandes-consumer:latest
ports:
- 8002:8002
depends_on:
- zipkin-server
- kafka
networks:
- spring-cloud-network
microservice-paiement-producer:
container_name: microservice-paiement-producer
build:
context: microservice-paiement-producer
dockerfile: Dockerfile
image: microservice-paiement-producer:latest
ports:
- 8003:8003
depends_on:
- zipkin-server
- kafka
networks:
- spring-cloud-network
microservice-clientui:
container_name: microservice-clientui
build:
context: clientui
dockerfile: Dockerfile
image: microservice-clientui:latest
ports:
- 8080:8080
depends_on:
- zipkin-server
networks:
- spring-cloud-network
networks:
spring-cloud-network:
driver: bridge