-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.yaml
More file actions
155 lines (155 loc) · 4.1 KB
/
compose.yaml
File metadata and controls
155 lines (155 loc) · 4.1 KB
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
152
153
154
155
name: selmag
services:
# Инфраструктура
keycloak:
image: quay.io/keycloak/keycloak:23.0.7
environment:
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
volumes:
- './config/keycloak/import:/opt/keycloak/data/import'
ports:
- '8082:8080'
command: start-dev --import-realm
tempo:
image: grafana/tempo:2.3.1
command: -config.file=/etc/tempo.yaml
volumes:
- './config/tempo/tempo.yaml:/etc/tempo.yaml'
ports:
- '3200:3200'
- '9095:9095'
- '4317:4317'
- '4318:4318'
- '9411:9411'
- '14268:14268'
loki:
image: grafana/loki:2.9.4
ports:
- '3100:3100'
grafana:
image: grafana/grafana:10.2.4
ports:
- '3000:3000'
volumes:
- './data/grafana:/var/lib/grafana'
user: '1000'
victoria-metrics:
image: victoriametrics/victoria-metrics:v1.93.12
command: -promscrape.config=/promscrape.yaml
volumes:
- './config/victoria-metrics/promscrape_docker_compose.yaml:/promscrape.yaml'
ports:
- '8428:8428'
catalogue-db:
image: postgres:16
ports:
- '5432:5432'
environment:
POSTGRES_USER: catalogue
POSTGRES_PASSWORD: catalogue
POSTGRES_DB: catalogue
feedback-db:
image: mongo:7
ports:
- '27017:27017'
# Сервисы
config-server:
restart: always
build:
dockerfile: Dockerfile
args:
JAR_FILE: config-server/target/config-server-0.0.1-SNAPSHOT-exec.jar
tags:
- localhost:5000/selmag/config-server:0.0.1
environment:
SPRING_PROFILES_ACTIVE: native
SPRING_CLOUD_CONFIG_SERVER_NATIVE_SEARCH_LOCATIONS: file:///config/{application}/{profile}
LOKI: http://loki:3100
volumes:
- './config/cloud:/config'
ports:
- '8888:8888'
eureka-server:
restart: always
build:
dockerfile: Dockerfile
args:
JAR_FILE: eureka-server/target/eureka-server-0.0.1-SNAPSHOT-exec.jar
tags:
- localhost:5000/selmag/eureka-server:0.0.1
environment:
SPRING_PROFILES_ACTIVE: cloudconfig
LOKI: http://loki:3100
ports:
- '8761:8761'
admin-server:
restart: always
build:
dockerfile: Dockerfile
args:
JAR_FILE: admin-server/target/admin-server-0.0.1-SNAPSHOT-exec.jar
tags:
- localhost:5000/selmag/admin-server:0.0.1
environment:
SPRING_PROFILES_ACTIVE: cloudconfig
LOKI: http://loki:3100
ports:
- '8085:8085'
catalogue-service:
restart: always
build:
dockerfile: Dockerfile
args:
JAR_FILE: catalogue-service/target/catalogue-service-0.0.1-SNAPSHOT-exec.jar
tags:
- localhost:5000/selmag/catalogue-service:0.0.1
environment:
SPRING_PROFILES_ACTIVE: cloudconfig, gateway
LOKI: http://loki:3100
feedback-service:
restart: always
build:
dockerfile: Dockerfile
args:
JAR_FILE: feedback-service/target/feedback-service-0.0.1-SNAPSHOT-exec.jar
tags:
- localhost:5000/selmag/feedback-service:0.0.1
environment:
SPRING_PROFILES_ACTIVE: cloudconfig, gateway
LOKI: http://loki:3100
customer-app:
restart: always
build:
dockerfile: Dockerfile
args:
JAR_FILE: customer-app/target/customer-app-0.0.1-SNAPSHOT-exec.jar
tags:
- localhost:5000/selmag/customer-app:0.0.1
environment:
SPRING_PROFILES_ACTIVE: cloudconfig, gateway
LOKI: http://loki:3100
manager-app:
restart: always
build:
dockerfile: Dockerfile
args:
JAR_FILE: manager-app/target/manager-app-0.0.1-SNAPSHOT-exec.jar
tags:
- localhost:5000/selmag/manager-app:0.0.1
environment:
SPRING_PROFILES_ACTIVE: cloudconfig, gateway
LOKI: http://loki:3100
api-gateway:
restart: always
build:
dockerfile: Dockerfile
args:
JAR_FILE: api-gateway/target/api-gateway-0.0.1-SNAPSHOT-exec.jar
tags:
- localhost:5000/selmag/api-gateway:0.0.1
environment:
SPRING_PROFILES_ACTIVE: cloudconfig
LOKI: http://loki:3100
ports:
- '8086:8086'