-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
135 lines (135 loc) · 3.78 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
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
version: '2'
services:
ocelot-config-server:
image: inspectit/inspectit-ocelot-configurationserver
container_name: ocelot-config-server
mem_limit: 128M
environment:
- INSPECTIT_WORKING_DIRECTORY=/configuration-server
- INSPECTIT_DEFAULT_USER_PASSWORD=demo
volumes:
- ./docker/configuration-server:/configuration-server
ports:
- 8090:8090
prometheus:
image: prom/prometheus:v2.7.1
container_name: prometheus
volumes:
- ./docker/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- 9090:9090
grafana:
image: grafana/grafana
container_name: grafana
environment:
- GF_SECURITY_ADMIN_PASSWORD=password
- GF_PATHS_PROVISIONING=/usr/share/grafana/custom/
volumes:
- ./docker/grafana/provisioning/prometheus:/usr/share/grafana/custom/
ports:
- 3001:3000
postgres:
image: "postgres"
container_name: postgres
environment:
- POSTGRES_USER=beer_user
- POSTGRES_PASSWORD=beer_password
- POSTGRES_DB=beersDB
volumes:
- ./docker/db/data.sql:/docker-entrypoint-initdb.d/init.sql
ports:
- 5432:5432
beer-service:
build:
context: .
dockerfile: ./docker/Dockerfile
args:
- 'JAR_PATH=./beer/target'
- 'PORT=8081'
- 'JAR=beer.jar'
- 'SERVICE=beer-service'
image: beer-service-image
container_name: beer-service
environment:
- CONFIG_HTTP_URL=http://ocelot-config-server:8090/api/v1/agent/configuration
- DB_URL=jdbc:postgresql://postgres:5432/beersDB
- INSPECTIT_SERVICE_NAME=beer-service
mem_limit: 512M
depends_on:
- ocelot-config-server
- postgres
ports:
- 8081:8081
- 8888:8888
ingredient-service:
build:
context: .
dockerfile: ./docker/Dockerfile
args:
- 'JAR_PATH=./ingredient/target'
- 'PORT=8082'
- 'JAR=ingredient.jar'
- 'SERVICE=ingredient-service'
image: ingredient-service-image
container_name: ingredient-service
environment:
- CONFIG_HTTP_URL=http://ocelot-config-server:8090/api/v1/agent/configuration
- DB_URL=jdbc:postgresql://postgres:5432/beersDB
- INSPECTIT_SERVICE_NAME=ingredient-service
mem_limit: 512M
depends_on:
- ocelot-config-server
- postgres
ports:
- 8082:8082
- 8887:8888
business-service:
build:
context: .
dockerfile: ./docker/Dockerfile
args:
- 'JAR_PATH=./business/target'
- 'PORT=8080'
- 'JAR=business.jar'
- 'SERVICE=business-service'
image: business-service-image
container_name: business-service
environment:
- CONFIG_HTTP_URL=http://ocelot-config-server:8090/api/v1/agent/configuration
- BEER_HTTP_URL=http://beer-service:8081/beers
- INGREDIENT_HTTP_URL=http://ingredient-service:8082/ingredients/
- DB_URL=jdbc:postgresql://postgres:5432/beersDB
- INSPECTIT_SERVICE_NAME=business-service
mem_limit: 512M
depends_on:
- ocelot-config-server
- beer-service
- ingredient-service
ports:
- 8080:8080
- 8886:8888
gui-service:
build:
context: .
dockerfile: ./docker/Dockerfile
args:
- 'JAR_PATH=./gui/target'
- 'PORT=8083'
- 'JAR=gui.jar'
- 'SERVICE=gui-service'
image: gui-service-image
container_name: gui-service
environment:
- CONFIG_HTTP_URL=http://ocelot-config-server:8090/api/v1/agent/configuration
- BUSINESS_HTTP_URL=http://business-service:8080
- DB_URL=jdbc:postgresql://postgres:5432/beersDB
- INSPECTIT_SERVICE_NAME=gui-service
mem_limit: 512M
depends_on:
- ocelot-config-server
- business-service
ports:
- 8083:8083
- 8885:8888
volumes:
db: