-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (41 loc) · 1.39 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
version: '2'
networks:
micronet:
services:
eureka:
image: springcloud/eureka
container_name: eureka
ports:
- "8761:8761"
networks:
- micronet
microservice1:
image: antifragilesoftware/simple-boot-microservice-eureka
container_name: microservice1
ports:
- "8080:8080"
depends_on:
- eureka
networks:
- micronet
command: ["java","--eureka.client.serviceUrl.defaultZone=http://eureka:8761/eureka/","--eureka.instance.prefer-ip-address=true","-Djava.security.egd=file:/dev/./urandom","-jar","/microservice.jar"]
microservice2:
image: antifragilesoftware/simple-boot-microservice-eureka
container_name: microservice2
ports:
- "8081:8080"
depends_on:
- eureka
networks:
- micronet
command: ["java","--eureka.client.serviceUrl.defaultZone=http://eureka:8761/eureka/","--eureka.instance.prefer-ip-address=true","-Djava.security.egd=file:/dev/./urandom","-jar","/microservice.jar"]
microserviceconsumer:
image: antifragilesoftware/simple-boot-microservice-consumer-eureka
container_name: microserviceconsumer
ports:
- "8090:8080"
depends_on:
- eureka
networks:
- micronet
command: ["java","--eureka.client.serviceUrl.defaultZone=http://eureka:8761/eureka/","--eureka.instance.prefer-ip-address=true","-Djava.security.egd=file:/dev/./urandom","-jar","/microservice.jar"]