forked from amoraes/spring-cloud-ecs-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
104 lines (97 loc) · 2.71 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
version: '3'
services:
# basic infrastructure
config-server:
container_name: example-config-server
image: 'amoraes/spring-cloud-ecs-example-config-server:latest'
network_mode: bridge
ports:
- '8888:8888'
environment:
- LOCAL_DOCKER_ENV=true
- SPRING_PROFILES_ACTIVE=docker
- JAVA_OPTIONS=-Xmx128m
- HOST_DOMAIN=localhost.local.com
- SERVER_PORT=8888
eureka:
container_name: example-eureka
image: 'amoraes/spring-cloud-ecs-example-eureka:latest'
network_mode: bridge
ports:
- '8761:8761'
depends_on:
- config-server
environment:
- LOCAL_DOCKER_ENV=true
- SPRING_PROFILES_ACTIVE=docker
- JAVA_OPTIONS=-Xmx128m
- HOST_DOMAIN=localhost.local.com
- SERVER_PORT=8761
- spring.cloud.config.uri=http://localhost.local.com:8888
gateway:
container_name: example-gateway
image: 'amoraes/spring-cloud-ecs-example-gateway:latest'
network_mode: bridge
ports:
- '9090:9090'
depends_on:
- eureka
environment:
- LOCAL_DOCKER_ENV=true
- SPRING_PROFILES_ACTIVE=docker
- JAVA_OPTIONS=-Xmx256m
- HOST_DOMAIN=localhost.local.com
- SERVER_PORT=9090
- spring.cloud.config.uri=http://localhost.local.com:8888
spring-boot-admin:
container_name: example-spring-boot-admin
image: 'amoraes/spring-cloud-ecs-example-spring-boot-admin:latest'
network_mode: bridge
ports:
- '9001:9001'
depends_on:
- eureka
environment:
- LOCAL_DOCKER_ENV=true
- SPRING_PROFILES_ACTIVE=docker
- JAVA_OPTIONS=-Xmx128m
- HOST_DOMAIN=localhost.local.com
- SERVER_PORT=9001
- spring.cloud.config.uri=http://localhost.local.com:8888
zipkin:
container_name: example-zipkin
image: openzipkin/zipkin
network_mode: bridge
ports:
- 9411:9411
hello-service:
container_name: example-hello-service
image: 'amoraes/spring-cloud-ecs-example-hello-service:latest'
network_mode: bridge
ports:
- '9800:9800'
depends_on:
- eureka
environment:
- LOCAL_DOCKER_ENV=true
- SPRING_PROFILES_ACTIVE=docker
- JAVA_OPTIONS=-Xmx128m
- HOST_DOMAIN=localhost.local.com
- SERVER_PORT=9800
- spring.cloud.config.uri=http://localhost.local.com:8888
weather-service:
container_name: example-weather-service
image: 'amoraes/spring-cloud-ecs-example-weather-service:latest'
network_mode: bridge
ports:
- '9810:9810'
depends_on:
- eureka
environment:
- LOCAL_DOCKER_ENV=true
- SPRING_PROFILES_ACTIVE=docker
- JAVA_OPTIONS=-Xmx128m
- HOST_DOMAIN=localhost.local.com
- SERVER_PORT=9810
- spring.cloud.config.uri=http://localhost.local.com:8888
- weather.api.key=57c74e66add4d823ad7e93285390eeb0