-
Notifications
You must be signed in to change notification settings - Fork 55
/
docker-compose.yml
83 lines (81 loc) · 2.01 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
version: '3.2'
services:
configuration-client:
build:
context: ./configuration-client
environment:
- SPRING_PROFILES_ACTIVE=docker
ports:
- 8080:8080
links:
- configuration-server
configuration-server:
build:
context: ./config-service
ports:
- 8888
version: '3'
services:
discovery-service:
container_name: discovery-service
image: 'rcherara/spring-cloud-learn/discovery-service:1.0.0-SNAPSHOT'
ports:
- 8761:8761
command: java -Djava.security.egd=file:/dev/./urandom -jar /app.jar
sc-zipkin:
image: openzipkin/zipkin
container_name: sc-zipkin
ports:
# Port used for the Zipkin UI and HTTP Api
- 9411:9411
sc-user:
container_name: sc-user
image: 'zhixilang/spring-cloud-learn/sc-user:1.0.0-SNAPSHOT'
expose:
- 8081
environment:
- EUREKA_HOST=sc-eureka
- EUREKA_PORT=8761
- ZIP_KIN_SERVER_HOST=sc-zipkin
- ZIP_KIN_SERVER_PORT=9411
links:
- sc-eureka
- sc-zipkin
depends_on:
- sc-eureka
- sc-zipkin
command: java -Djava.security.egd=file:/dev/./urandom -jar /app.jar
sc-bill:
container_name: sc-bill
image: 'zhixilang/spring-cloud-learn/sc-bill:1.0.0-SNAPSHOT'
expose:
- 8082
environment:
- EUREKA_HOST=sc-eureka
- EUREKA_PORT=8761
- ZIP_KIN_SERVER_HOST=sc-zipkin
- ZIP_KIN_SERVER_PORT=9411
links:
- sc-eureka
- sc-zipkin
depends_on:
- sc-eureka
- sc-zipkin
command: java -Djava.security.egd=file:/dev/./urandom -jar /app.jar
sc-gateway:
container_name: sc-gateway
image: 'zhixilang/spring-cloud-learn/sc-gateway:1.0.0-SNAPSHOT'
ports:
- 9527:9527
environment:
- EUREKA_HOST=sc-eureka
- EUREKA_PORT=8761
- ZIP_KIN_SERVER_HOST=sc-zipkin
- ZIP_KIN_SERVER_PORT=9411
links:
- sc-eureka
- sc-zipkin
depends_on:
- sc-eureka
- sc-zipkin
command: java -Djava.security.egd=file:/dev/./urandom -jar /app.jar