forked from callistaenterprise/blog-microservices
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-without-elk.yml
110 lines (97 loc) · 2.8 KB
/
docker-compose-without-elk.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
105
106
107
108
109
110
version: '2.1'
services:
rabbitmq:
image: rabbitmq:3-management
restart: always
ports:
# - "5672:5672"
- "15672:15672"
discovery:
build: microservices/support/discovery-server
restart: always
ports:
- "8761:8761"
environment:
- JAVA_TOOL_OPTIONS=${MY_JAVA_TOOL_OPTIONS}
config:
build: microservices/support/config-server
restart: always
ports:
- "8888:8888"
volumes:
- $PWD/../blog-microservices-config:/config-repo
environment:
- SPRING_PROFILES_ACTIVE=docker,native
- SPRING_CLOUD_CONFIG_SERVER_NATIVE_SEARCH_LOCATIONS=file:/config-repo
- SECURITY_USER_NAME=${MY_CONFIG_USER}
- SECURITY_USER_PASSWORD=${MY_CONFIG_PWD}
- JAVA_TOOL_OPTIONS=${MY_JAVA_TOOL_OPTIONS}
- MY_CONFIG_ENCRYPT_KEY=${MY_CONFIG_ENCRYPT_KEY}
auth:
build: microservices/support/auth-server
restart: always
ports:
- "9999:9999"
environment:
- MY_CONFIG_USER=${MY_CONFIG_USER}
- MY_CONFIG_PWD=${MY_CONFIG_PWD}
- JAVA_TOOL_OPTIONS=${MY_JAVA_TOOL_OPTIONS}
#turbine:
# image: magnuslarsson/ms-blog-turbine
## volumes:
## - $PWD/logs:/logs
pro:
build: microservices/core/product-service
restart: always
environment:
- MY_CONFIG_USER=${MY_CONFIG_USER}
- MY_CONFIG_PWD=${MY_CONFIG_PWD}
- JAVA_TOOL_OPTIONS=${MY_JAVA_TOOL_OPTIONS}
rec:
build: microservices/core/recommendation-service
restart: always
environment:
- MY_CONFIG_USER=${MY_CONFIG_USER}
- MY_CONFIG_PWD=${MY_CONFIG_PWD}
- JAVA_TOOL_OPTIONS=${MY_JAVA_TOOL_OPTIONS}
rev:
build: microservices/core/review-service
restart: always
environment:
- MY_CONFIG_USER=${MY_CONFIG_USER}
- MY_CONFIG_PWD=${MY_CONFIG_PWD}
- JAVA_TOOL_OPTIONS=${MY_JAVA_TOOL_OPTIONS}
composite:
build: microservices/composite/product-composite-service
restart: always
environment:
- MY_CONFIG_USER=${MY_CONFIG_USER}
- MY_CONFIG_PWD=${MY_CONFIG_PWD}
- JAVA_TOOL_OPTIONS=${MY_JAVA_TOOL_OPTIONS}
monitor:
build: microservices/support/monitor-dashboard
restart: always
ports:
- "7979:7979"
environment:
- MY_CONFIG_USER=${MY_CONFIG_USER}
- MY_CONFIG_PWD=${MY_CONFIG_PWD}
- JAVA_TOOL_OPTIONS=${MY_JAVA_TOOL_OPTIONS}
edge:
build: microservices/support/edge-server
restart: always
ports:
- "443:8765"
environment:
- MY_CONFIG_USER=${MY_CONFIG_USER}
- MY_CONFIG_PWD=${MY_CONFIG_PWD}
- JAVA_TOOL_OPTIONS=${MY_JAVA_TOOL_OPTIONS}
zipkin:
build: microservices/support/zipkin-server
restart: always
ports:
- "9411:9411"
environment:
- MY_CONFIG_USER=${MY_CONFIG_USER}
- MY_CONFIG_PWD=${MY_CONFIG_PWD}
- JAVA_TOOL_OPTIONS=${MY_JAVA_TOOL_OPTIONS}