-
Notifications
You must be signed in to change notification settings - Fork 487
/
docker-compose-images.yml
59 lines (53 loc) · 1.32 KB
/
docker-compose-images.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
version: '3'
services:
rabbitmq:
image: rabbitmq:3.5.3-management
ports:
- "5672:5672"
- "15672:15672"
eureka:
build: ./eureka-server
ports:
- "8761:8761"
zipkin:
build: ./zipkin-server
ports:
- "9411:9411"
depends_on:
- rabbitmq
environment:
RABBIT_HOST: rabbitmq
mongodb:
image: mongo:3.0.4
ports:
- "27017:27017"
command: mongod --smallfiles
restfulservice:
image: spring-boot-restful-service
ports:
- "8081:8080"
depends_on:
- rabbitmq
- mongodb
- eureka
environment:
SPRING_DATA_MONGODB_URI: mongodb://mongodb/userregistration
SPRING_RABBITMQ_HOST: rabbitmq
SPRING_APPLICATION_NAME: registration-service
EUREKA_INSTANCE_PREFER_IP_ADDRESS: "true"
SPRING_PROFILES_ACTIVE: enableEureka
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: http://eureka:8761/eureka/
web:
image: spring-boot-webapp
ports:
- "8080:8080"
depends_on:
- rabbitmq
- mongodb
- eureka
environment:
USER_REGISTRATION_URL: http://REGISTRATION-SERVICE/user
SPRING_APPLICATION_NAME: registration-web
EUREKA_INSTANCE_PREFER_IP_ADDRESS: "true"
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: http://eureka:8761/eureka/
SPRING_PROFILES_ACTIVE: enableEureka