-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yaml
151 lines (151 loc) · 4.92 KB
/
docker-compose.yaml
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
#mvn spring-boot:build-image -DskipTests
version: '3.4'
services:
postgresql-svc:
container_name: postgresql-svc
image: docker.io/bitnami/postgresql:14
ports:
- '5432:5432'
volumes:
- 'postgresql_data:/bitnami/postgresql'
environment:
- 'ALLOW_EMPTY_PASSWORD=yes'
config-server:
container_name: config-server
image: docker.io/library/config:0.0.1-SNAPSHOT
environment:
WAVEFRONT_TOKEN: 'change-me'
ports:
- '8888:8888'
user-svc:
container_name: user-svc
image: docker.io/library/user-service:0.0.1-SNAPSHOT
depends_on:
- "discovery-svc"
environment:
'spring.datasource.url': 'jdbc:postgresql://postgresql-svc:5432/'
'spring.datasource.username': 'postgres'
'spring.jpa.database-platform': 'org.hibernate.dialect.PostgreSQLDialect'
'spring.cloud.config.uri' : 'http://config-server:8888'
'spring.cloud.config.fail-fast' : 'true'
'spring.cloud.config.retry.max-interval': 10000
'spring.cloud.config.retry.max-attempts': 2000
WAVEFRONT_TOKEN: 'change-me'
EUREKA_URL: 'http://admin:admin@discovery-svc:8761/eureka'
ports:
- '8084:8080'
expose:
- '8084'
account-svc:
container_name: account-svc
image: docker.io/library/account-service:0.0.1-SNAPSHOT
depends_on:
- "discovery-svc"
environment:
'spring.datasource.url': 'jdbc:postgresql://postgresql-svc:5432/'
'spring.datasource.username': 'postgres'
'spring.jpa.database-platform': 'org.hibernate.dialect.PostgreSQLDialect'
'spring.cloud.config.uri' : 'http://config-server:8888'
'spring.cloud.config.fail-fast' : 'true'
'spring.cloud.config.retry.max-interval': 10000
'spring.cloud.config.retry.max-attempts': 2000
WAVEFRONT_TOKEN: 'change-me'
EUREKA_URL: 'http://admin:admin@discovery-svc:8761/eureka'
ports:
- '8082:8080'
expose:
- '8082'
quote-svc:
container_name: quote-svc
image: docker.io/library/quote-service:0.0.1-SNAPSHOT
depends_on:
- "discovery-svc"
environment:
'spring.cloud.config.uri' : 'http://config-server:8888'
'spring.cloud.config.fail-fast' : 'true'
'spring.cloud.config.retry.max-interval': 10000
'spring.cloud.config.retry.max-attempts': 2000
'spring.cache.type': 'redis'
'spring.redis.host': 'redis-svc'
'spring.redis.port': 6379
WAVEFRONT_TOKEN: 'change-me'
EUREKA_URL: 'http://admin:admin@discovery-svc:8761/eureka'
ports:
- '8083:8080'
expose:
- '8083'
portfolio-svc:
container_name: portfolio-svc
image: docker.io/library/portfolio-service:0.0.1-SNAPSHOT
depends_on:
- "discovery-svc"
environment:
'spring.datasource.url': 'jdbc:postgresql://postgresql-svc:5432/'
'spring.datasource.username': 'postgres'
'spring.jpa.database-platform': 'org.hibernate.dialect.PostgreSQLDialect'
accountServiceName: 'account-svc:8080'
quoteServiceName: 'quote-svc:8080'
'spring.cloud.config.uri' : 'http://config-server:8888'
'spring.cloud.config.fail-fast' : 'true'
'spring.cloud.config.retry.max-interval': 10000
'spring.cloud.config.retry.max-attempts': 2000
WAVEFRONT_TOKEN: 'change-me'
EUREKA_URL: 'http://admin:admin@discovery-svc:8761/eureka'
ports:
- '8081:8080'
expose:
- '8081'
web-ui-svc:
container_name: web-ui-svc
image: docker.io/library/web-ui:0.0.1-SNAPSHOT
depends_on:
- "discovery-svc"
environment:
accountServiceName: 'account-svc:8080'
userServiceName: 'user-svc:8080'
portfolioServiceName: 'portfolio-svc:8080'
analyticsServiceName: 'analytics-svc:8080'
quoteServiceName: 'quote-svc:8080'
'spring.cloud.config.uri' : 'http://config-server:8888'
'spring.cloud.config.fail-fast' : 'true'
'spring.cloud.config.retry.max-interval': 10000
'spring.cloud.config.retry.max-attempts': 2000
WAVEFRONT_TOKEN: 'change-me'
EUREKA_URL: 'http://admin:admin@discovery-svc:8761/eureka'
ports:
- '8080:8080'
expose:
- '8080'
discovery-svc:
container_name: discovery-svc
image: docker.io/library/discovery:0.0.1-SNAPSHOT
depends_on:
- "config-server"
environment:
'management.metrics.export.wavefront.uri': 'proxy://wf-proxy:2878'
'management.metrics.export.wavefront.api-token': 'change-me'
ports:
- '8761:8761'
expose:
- '8761'
wf-proxy:
container_name: wf-proxy
image: wavefronthq/proxy:latest
environment:
WAVEFRONT_URL: 'https://vmware.wavefront.com/api'
WAVEFRONT_TOKEN: 'change-me'
WAVEFRONT_URL: 'https://wavefront.surf/api'
JAVA_HEAP_USAGE: '1650m'
ports:
- '2878:2878'
expose:
- '2878'
redis-svc:
container_name: redis-svc
image: redis/redis-stack:latest
ports:
- '8001:8001'
- '6379:6379'
volumes:
postgresql_data:
driver: local