Compare commits
11 Commits
Author | SHA1 | Date | |
---|---|---|---|
b1f05c3fe4 | |||
484a495068 | |||
a1b33b38ad | |||
d359e0ece2 | |||
8517a39e1a | |||
dfcb3fe362 | |||
49e7b7302c | |||
74482bf77d | |||
2e9e16f95d | |||
9b4f93b4bf | |||
d54753b7e1 |
3
.idea/.gitignore
vendored
3
.idea/.gitignore
vendored
@ -1,3 +0,0 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
@ -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>
|
@ -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>
|
@ -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>
|
@ -1,6 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
@ -1,50 +1,24 @@
|
||||
services:
|
||||
eisa:
|
||||
image: git.expertdwh.ru/ewh/expertisa:${BRANCH}
|
||||
image: git.expertdwh.ru/ewh/expertisa:master
|
||||
pull_policy: always
|
||||
restart: unless-stopped
|
||||
deploy:
|
||||
replicas: 2
|
||||
replicas: 3
|
||||
configs:
|
||||
- source: app_config
|
||||
target: /data/application.yaml
|
||||
- source: hikari
|
||||
target: /data/hikari.properties
|
||||
entrypoint: ["java", "-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"
|
||||
- "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"
|
||||
- "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
|
||||
network_mode: bridge
|
||||
|
||||
configs:
|
||||
app_config:
|
||||
@ -52,27 +26,12 @@ configs:
|
||||
infinispan:
|
||||
embedded:
|
||||
enabled: true
|
||||
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
|
||||
cluster-name: eisa-master
|
||||
eisa:
|
||||
force-core-update: true
|
||||
metadata-git:
|
||||
url: https://git.expertdwh.ru/EWH/expert-isa-2-metadata
|
||||
branch: ${BRANCH}
|
||||
branch: master
|
||||
enabled: true
|
||||
token: ${GIT_TOKEN}
|
||||
file-store-type: s3
|
||||
@ -81,16 +40,16 @@ configs:
|
||||
port: 9000
|
||||
access-key: ZfyTrAp9tsxkvfyyEIbC
|
||||
secret-key: jurIHMBGQ54HLu0CXwLSDiahhT6JV6qwZTFhqO37
|
||||
bucket: dev
|
||||
bucket: master
|
||||
db:
|
||||
common-datasource-name: psql
|
||||
common-datasource-name: meta
|
||||
jdbc:
|
||||
psql:
|
||||
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}
|
||||
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
|
||||
@ -104,7 +63,3 @@ configs:
|
||||
username: dwh
|
||||
password: ${DWH_PASSWORD}
|
||||
audit.enabled: true
|
||||
|
||||
hikari:
|
||||
content: |
|
||||
maximumPoolSize=3
|
Loading…
Reference in New Issue
Block a user