Compare commits

..

29 Commits
master ... test

Author SHA1 Message Date
StepanDemin
7cb29baed6 изменены настройки smtp на yandex 2024-11-22 15:58:25 +03:00
StepanDemin
ff3186c85e временно убрана настройка smtp 2024-11-22 13:23:54 +03:00
StepanDemin
32fc4709db заменён секрет на переменную окружения 2024-11-22 10:09:47 +03:00
StepanDemin
2a0f35bd79 добавлена настройка smtp 2024-11-22 09:47:05 +03:00
7a92e754e5 Отключаем debug логи. 2024-11-20 13:09:00 +00:00
9738092f62 Временно включаем Debug логи 2024-11-13 12:55:43 +03:00
25398c4a16 Временно включаем Trace логи 2024-11-13 12:46:47 +03:00
3c9ad2398d Added .gitignore
(cherry picked from commit b1f05c3fe4)
2024-11-13 12:45:29 +03:00
11374e6f7a Тестируем Gossip Router. 2024-10-30 16:04:54 +03:00
09209246e2 Тестируем Gossip Router. 2024-10-30 16:01:46 +03:00
5bf6b5810e Тестируем Gossip Router. 2024-10-30 15:56:35 +03:00
99209ed064 Тестируем Gossip Router. 2024-10-30 15:40:38 +03:00
34dd5650b2 JAVA_TOOL_OPTIONS в настройки стека, вместо Dockerfile 2024-10-30 10:42:52 +03:00
d7102b759f Обновить docker-compose.yml 2024-10-29 16:56:17 +00:00
f5552e2735 Обновить docker-compose.yml 2024-10-29 16:53:37 +00:00
86f9e25e2a reWriteBatchedInserts для соединений с AD и PG 2024-10-28 14:23:54 +00:00
StepanDemin
f5af5bf2a0 убраны логи hikari 2024-10-22 08:39:32 +03:00
StepanDemin
d66d394a9a изменено количество соединений с бд в пуле до 3 2024-10-22 08:26:18 +03:00
StepanDemin
5e5afb5afd добавлено имя для сетевого связывания 2024-10-08 09:32:13 +03:00
StepanDemin
52629d9949 изменён volume для psql 2024-10-07 18:11:39 +03:00
StepanDemin
ca49c5a6b7 добавлено подключение к s3/dev 2024-10-07 16:01:08 +03:00
StepanDemin
e1ef4d060c добавлен volume 2024-10-04 16:14:58 +03:00
StepanDemin
d7ef3121e1 обновлён ci-cd для развёртывания на двух нодах и с постгре 2024-10-04 15:28:28 +03:00
6e07280e96 pre/post скрипты для Postgresql 2024-09-27 13:04:05 +03:00
65f66abc78 Убираем infinispan, т.к. по умолчанию он будет выключен. 2024-09-13 17:31:21 +03:00
ba9b25bf9c Убрал management из настроек. 2024-08-20 18:15:17 +03:00
abca60e5d6 restart: unless-stopped 2024-07-03 17:10:47 +03:00
fa5877841c Меняем ветку метаданных на имя ветки разработки. 2024-07-03 09:20:14 +03:00
903a256002 test docker-compose.yml 2024-07-02 22:13:05 +03:00
6 changed files with 97 additions and 20 deletions

3
.idea/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
# Default ignored files
/shelf/
/workspace.xml

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

6
.idea/misc.xml Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_18" default="true" project-jdk-name="18" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>

8
.idea/modules.xml Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/expert-isa-2-cicd.iml" filepath="$PROJECT_DIR$/.idea/expert-isa-2-cicd.iml" />
</modules>
</component>
</project>

6
.idea/vcs.xml Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>

View File

@ -1,24 +1,50 @@
services: services:
eisa: eisa:
image: git.expertdwh.ru/ewh/expertisa:master image: git.expertdwh.ru/ewh/expertisa:${BRANCH}
pull_policy: always pull_policy: always
restart: unless-stopped restart: unless-stopped
deploy: deploy:
replicas: 3 replicas: 2
configs: configs:
- source: app_config - source: app_config
target: /data/application.yaml target: /data/application.yaml
- source: hikari
labels: target: /data/hikari.properties
- "traefik.http.routers.expertisa-master.rule=HostRegexp(`master\\..+`)" entrypoint: ["java", "-Dhikaricp.configurationFile=/data/hikari.properties", "-Djgroups.tunnel.hosts=app-eisa.expertdwh.ru[12001]", "-jar", "/app.war"]
- "traefik.http.routers.expertisa-master.tls=true"
- "traefik.http.services.expertisa-master.loadbalancer.healthcheck.path=/health"
- "traefik.http.services.expertisa-master.loadbalancer.healthcheck.interval=5s"
environment: environment:
JAVA_TOOL_OPTIONS: "-XX:MaxRAMPercentage=90" JAVA_TOOL_OPTIONS: "-XX:MaxRAMPercentage=90"
network_mode: bridge labels:
- "traefik.http.routers.expertisa-${BRANCH}.rule=HostRegexp(`${BRANCH}\\..+`)"
- "traefik.http.routers.expertisa-${BRANCH}.tls=true"
- "traefik.http.services.expertisa-${BRANCH}.loadbalancer.healthcheck.path=/health"
- "traefik.http.services.expertisa-${BRANCH}.loadbalancer.healthcheck.interval=5s"
networks:
- expertisa-twonodes-postgresql
depends_on:
- psql
psql:
container_name: psql-${BRANCH}
image: postgres:latest
environment:
POSTGRES_USER: "admin"
POSTGRES_PASSWORD: "admin"
POSTGRES_DB: "expertisa-metadata"
networks:
- expertisa-twonodes-postgresql
volumes:
- pgdata:/var/lib/postgresql/data
volumes:
pgdata:
name: pgdata-${BRANCH}
networks:
expertisa-twonodes-postgresql:
external: true
configs: configs:
app_config: app_config:
@ -26,12 +52,27 @@ configs:
infinispan: infinispan:
embedded: embedded:
enabled: true enabled: true
cluster-name: eisa-master cluster-name: eisa-${BRANCH}
stack: tunnel
spring:
mail:
host: smtp.yandex.ru
port: 465
username: expertisaewh@yandex.ru
password: ${NOTIFICATION_PASSWORD}
properties:
mail:
transport:
protocol: smtps
smtp:
auth: true
ssl:
enable: true
eisa: eisa:
force-core-update: true force-core-update: true
metadata-git: metadata-git:
url: https://git.expertdwh.ru/EWH/expert-isa-2-metadata url: https://git.expertdwh.ru/EWH/expert-isa-2-metadata
branch: master branch: ${BRANCH}
enabled: true enabled: true
token: ${GIT_TOKEN} token: ${GIT_TOKEN}
file-store-type: s3 file-store-type: s3
@ -40,16 +81,16 @@ configs:
port: 9000 port: 9000
access-key: ZfyTrAp9tsxkvfyyEIbC access-key: ZfyTrAp9tsxkvfyyEIbC
secret-key: jurIHMBGQ54HLu0CXwLSDiahhT6JV6qwZTFhqO37 secret-key: jurIHMBGQ54HLu0CXwLSDiahhT6JV6qwZTFhqO37
bucket: master bucket: dev
db: db:
common-datasource-name: meta common-datasource-name: psql
jdbc: jdbc:
meta: psql:
url: jdbc:postgresql://app.expertdwh.ru:5432/eisa-master url: jdbc:postgresql://psql-${BRANCH}:5432/expertisa-metadata?reWriteBatchedInserts=true
username: ewh username: admin
password: ${EWH_PASSWORD} password: admin
EWH: EWH:
url: jdbc:postgresql://adb-master.expertdwh.ru:5432/ewh url: jdbc:postgresql://adb-master.expertdwh.ru:5432/ewh?reWriteBatchedInserts=true
username: ewh username: ewh
password: ${EWH_PASSWORD} password: ${EWH_PASSWORD}
pre-script: core-postgresql.preScript pre-script: core-postgresql.preScript
@ -63,3 +104,7 @@ configs:
username: dwh username: dwh
password: ${DWH_PASSWORD} password: ${DWH_PASSWORD}
audit.enabled: true audit.enabled: true
hikari:
content: |
maximumPoolSize=3