Compare commits

..

19 Commits

Author SHA1 Message Date
b9fc8dfa1a Обновить docker-compose.yml 2025-03-03 09:42:50 +00:00
e8883608f4 Обновить docker-compose.yml 2025-02-13 12:26:57 +00:00
338d951c5f Новые настройки пулов соединений с БД 2025-01-23 11:58:20 +00:00
1832f0ce2d добавлен preScript для oracle 2025-01-15 14:49:51 +00:00
93a05e8cf2 Ставим лимиты стендам 2025-01-10 16:41:08 +00:00
2523ef6395 Обновить docker-compose.yml 2025-01-09 08:56:49 +00:00
de8d8d2ef4 Меняем healthcheck на readiness probe 2025-01-02 11:03:09 +00:00
a6db7bc427 добавлены настройки для нотификации 2024-12-06 13:43:42 +00:00
b1f05c3fe4 Added .gitignore 2024-11-13 12:45:17 +03:00
484a495068 JAVA_TOOL_OPTIONS в настройки стека, вместо Dockerfile 2024-11-11 20:48:38 +03:00
a1b33b38ad Реплики в docker-compose.yml вместо нескольких стеков. 2024-10-01 18:31:25 +03:00
d359e0ece2 pre/post скрипты для Postgresql 2024-09-27 13:04:51 +03:00
8517a39e1a Принудительно включаем infinispan, т.к. по умолчанию он будет выключен. 2024-09-13 17:28:16 +03:00
dfcb3fe362 Убираем mount на физический диск. 2024-09-11 11:44:45 +03:00
49e7b7302c Поменял healthcheck эндпоинт. 2024-08-21 13:58:23 +03:00
74482bf77d Merge remote-tracking branch 'origin/master' 2024-08-20 18:15:54 +03:00
2e9e16f95d Убрал management из настроек. 2024-08-20 18:15:42 +03:00
9b4f93b4bf Настройки S3 для master 2024-08-07 08:30:47 +00:00
d54753b7e1 restart: unless-stopped 2024-07-03 17:10:09 +03:00
6 changed files with 45 additions and 101 deletions

3
.idea/.gitignore generated vendored
View File

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

View File

@ -1,9 +0,0 @@
<?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 generated
View File

@ -1,6 +0,0 @@
<?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 generated
View File

@ -1,8 +0,0 @@
<?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 generated
View File

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

View File

@ -1,64 +1,35 @@
services:
eisa:
image: git.expertdwh.ru/ewh/expertisa:${BRANCH}
image: git.expertdwh.ru/ewh/expertisa:master
pull_policy: always
restart: unless-stopped
deploy:
replicas: ${REPLICAS:-1}
replicas: 3
resources:
limits:
cpus: '4.0'
memory: 4G
memory: 10G
configs:
- source: app_config
target: /data/application.yaml
- source: hikari
target: /data/hikari.properties
entrypoint: ["java", "-Dexpertisa.branch=${BRANCH}", "-Dhikaricp.configurationFile=/data/hikari.properties", "-Djgroups.tunnel.hosts=app-eisa.expertdwh.ru[12001]", "-jar", "/app.war"]
labels:
- "traefik.http.routers.expertisa-master.rule=HostRegexp(`master\\..+`)"
- "traefik.http.routers.expertisa-master.tls=true"
- "traefik.http.services.expertisa-master.loadbalancer.healthcheck.path=/health/readiness"
- "traefik.http.services.expertisa-master.loadbalancer.healthcheck.interval=5s"
environment:
JAVA_TOOL_OPTIONS: "-XX:MaxRAMPercentage=90"
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/readiness"
- "traefik.http.services.expertisa-${BRANCH}.loadbalancer.healthcheck.interval=5s"
networks:
- expertisa-twonodes-postgresql
depends_on:
- psql
psql:
container_name: psql-${BRANCH}
image: postgres:latest
restart: unless-stopped
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
network_mode: bridge
configs:
app_config:
content: |
infinispan:
embedded:
${REPLICAS:+enabled: true}
cluster-name: eisa-${BRANCH}
stack: tunnel
enabled: true
cluster-name: eisa-master
spring:
mail:
host: smtp.yandex.ru
@ -77,12 +48,7 @@ configs:
force-core-update: true
metadata-git:
url: https://git.expertdwh.ru/EWH/expert-isa-2-metadata
branch: ${BRANCH}
enabled: true
token: ${GIT_TOKEN}
personal-tunes-git:
url: https://git.expertdwh.ru/EWH/expert-isa-2-personal-tunes
branch: ${BRANCH}
branch: master
enabled: true
token: ${GIT_TOKEN}
file-store-type: s3
@ -91,46 +57,56 @@ configs:
port: 9000
access-key: Q13rej1S6TdtXKb5Fuw5
secret-key: ArYgb17ovZZutEgxZnIqNKq1h6DfNt7CN5zeiQXg
bucket: dev
bucket: master
db:
common-datasource-name: psql
camunda-datasource-name: psql-camunda
common-datasource-name: meta
camunda-datasource-name: meta-camunda
jdbc:
psql:
url: jdbc:postgresql://psql-${BRANCH}:5432/expertisa-metadata?reWriteBatchedInserts=true
username: admin
password: admin
psql-camunda:
url: jdbc:postgresql://psql-${BRANCH}:5432/expertisa-metadata?reWriteBatchedInserts=true
username: admin
password: admin
meta:
url: jdbc:postgresql://app.expertdwh.ru:5432/eisa-master
username: ewh
password: ${EWH_PASSWORD}
pool:
minimum-idle: 1
max-pool-size: 10
meta-camunda:
url: jdbc:postgresql://app.expertdwh.ru:5432/eisa-master
username: ewh
password: ${EWH_PASSWORD}
pool:
minimum-idle: 1
max-pool-size: 12
EWH:
url: jdbc:postgresql://adb-master.expertdwh.ru:5432/ewh?reWriteBatchedInserts=true
url: jdbc:postgresql://adb-master.expertdwh.ru:5432/ewh
username: ewh
password: ${EWH_PASSWORD}
pre-script: core-postgresql.preScript
post-script: core-postgresql.postScript
pool:
minimum-idle: 1
max-pool-size: 10
EWH_ORA:
url: jdbc:oracle:thin:@oracle.expertdwh.ru:1521:ewh
username: ewh
password: ${EWH_PASSWORD}
pre-script: core-oracle.preScript
pool:
minimum-idle: 1
max-pool-size: 10
DWH_ORA:
url: jdbc:oracle:thin:@oracle.expertdwh.ru:1521:ewh
username: dwh
password: ${DWH_PASSWORD}
pre-script: core-oracle.preScript
pool:
minimum-idle: 1
max-pool-size: 10
MSSQL:
url: jdbc:sqlserver://;serverName=app.expertdwh.ru;databaseName=master;encrypt=true;trustServerCertificate=true
username: sa
password: ${EWH_PASSWORD}
uwh:
url: jdbc:postgresql://app.expertdwh.ru/uwh?reWriteBatchedInserts=true
username: uwh
password: uwh
audit.enabled: true
hikari:
content: |
minimumIdle=0
maximumPoolSize=12
logging:
level:
root: debug
ru.expertdwh: trace