forked from bslota/cloud-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
68 lines (68 loc) · 1.62 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
version: '3'
networks:
microservices:
driver: bridge
services:
discovery-server:
build: ./discovery-server
environment:
- HOST_NAME=discovery-server
- eureka.client.serviceUrl.defaultZone=http://discovery-server:8761/eureka/
ports:
- "8761:8761"
networks:
- microservices
config-server:
build: ./config-server
environment:
- HOST_NAME=config-server
- eureka.client.serviceUrl.defaultZone=http://discovery-server:8761/eureka/
ports:
- "8888:8888"
networks:
- microservices
depends_on:
- discovery-server
customer-manager:
build: ./customer-manager
environment:
- HOST_NAME=customer-manager
- eureka.client.serviceUrl.defaultZone=http://discovery-server:8761/eureka/
ports:
- "8085:8085"
networks:
- microservices
depends_on:
- discovery-server
product-manager:
build: ./product-manager
environment:
- HOST_NAME=product-manager
- eureka.client.serviceUrl.defaultZone=http://discovery-server:8761/eureka/
ports:
- "8086:8086"
networks:
- microservices
depends_on:
- discovery-server
gateway:
build: ./gateway
environment:
- HOST_NAME=gateway
- eureka.client.serviceUrl.defaultZone=http://discovery-server:8761/eureka/
ports:
- "8080:8080"
networks:
- microservices
depends_on:
- discovery-server
kafka:
image: spotify/kafka
networks:
- microservices
ports:
- "9092:9092"
- "2181:2181"
environment:
ADVERTISED_HOST: kafka
ADVERTISED_PORT: 9092