7 Commits

View File

@ -4,7 +4,7 @@ services:
pull_policy: always pull_policy: always
restart: unless-stopped restart: unless-stopped
deploy: deploy:
replicas: 2 replicas: ${REPLICAS:-1}
resources: resources:
limits: limits:
cpus: '4.0' cpus: '4.0'
@ -12,15 +12,15 @@ services:
configs: configs:
- source: app_config - source: app_config
target: /data/application.yaml target: /data/application.yaml
- source: hikari volumes:
target: /data/hikari.properties - /opt/docker/eisa/lib:/lib:ro
entrypoint: ["java", "-Dexpertisa.branch=${BRANCH}", "-Dhikaricp.configurationFile=/data/hikari.properties", "-Djgroups.tunnel.hosts=app-eisa.expertdwh.ru[12001]", "-jar", "/app.war"] entrypoint: ["java", "-Deisa.branch=${BRANCH}", "-Djgroups.tunnel.hosts=app-eisa.expertdwh.ru[12001]", "-cp", "/app.war", "org.springframework.boot.loader.launch.PropertiesLauncher"]
environment: environment:
JAVA_TOOL_OPTIONS: "-XX:MaxRAMPercentage=90" JAVA_TOOL_OPTIONS: "-XX:MaxRAMPercentage=90"
labels: labels:
- "traefik.http.routers.expertisa-${BRANCH}.rule=HostRegexp(`${BRANCH}\\..+`)" - "traefik.http.routers.expertisa-${BRANCH}.rule=HostRegexp(`(?i)${BRANCH}\\..+`)"
- "traefik.http.routers.expertisa-${BRANCH}.tls=true" - "traefik.http.routers.expertisa-${BRANCH}.tls=true"
- "traefik.http.services.expertisa-${BRANCH}.loadbalancer.healthcheck.path=/health/readiness" - "traefik.http.services.expertisa-${BRANCH}.loadbalancer.healthcheck.path=/health/readiness"
- "traefik.http.services.expertisa-${BRANCH}.loadbalancer.healthcheck.interval=5s" - "traefik.http.services.expertisa-${BRANCH}.loadbalancer.healthcheck.interval=5s"
@ -32,7 +32,7 @@ services:
psql: psql:
container_name: psql-${BRANCH} container_name: psql-${BRANCH}
image: postgres:latest image: postgres:9.4
restart: unless-stopped restart: unless-stopped
environment: environment:
POSTGRES_USER: "admin" POSTGRES_USER: "admin"
@ -56,7 +56,7 @@ configs:
content: | content: |
infinispan: infinispan:
embedded: embedded:
enabled: true ${REPLICAS:+enabled: true}
cluster-name: eisa-${BRANCH} cluster-name: eisa-${BRANCH}
stack: tunnel stack: tunnel
spring: spring:
@ -82,7 +82,7 @@ configs:
token: ${GIT_TOKEN} token: ${GIT_TOKEN}
personal-tunes-git: personal-tunes-git:
url: https://git.expertdwh.ru/EWH/expert-isa-2-personal-tunes url: https://git.expertdwh.ru/EWH/expert-isa-2-personal-tunes
branch: master branch: ${BRANCH}
enabled: true enabled: true
token: ${GIT_TOKEN} token: ${GIT_TOKEN}
file-store-type: s3 file-store-type: s3
@ -100,37 +100,60 @@ configs:
url: jdbc:postgresql://psql-${BRANCH}:5432/expertisa-metadata?reWriteBatchedInserts=true url: jdbc:postgresql://psql-${BRANCH}:5432/expertisa-metadata?reWriteBatchedInserts=true
username: admin username: admin
password: admin password: admin
pool:
pool-name: psql
minimum-idle: 1
maximum-pool-size: 50
psql-camunda: psql-camunda:
url: jdbc:postgresql://psql-${BRANCH}:5432/expertisa-metadata?reWriteBatchedInserts=true url: jdbc:postgresql://psql-${BRANCH}:5432/expertisa-metadata?reWriteBatchedInserts=true
username: admin username: admin
password: admin password: admin
pool:
pool-name: psql-camunda
minimum-idle: 1
maximum-pool-size: 50
EWH: EWH:
url: jdbc:postgresql://adb-master.expertdwh.ru:5432/ewh?reWriteBatchedInserts=true 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
post-script: core-postgresql.postScript post-script: core-postgresql.postScript
pool:
pool-name: ewh
minimum-idle: 1
maximum-pool-size: 50
EWH_ORA: EWH_ORA:
url: jdbc:oracle:thin:@oracle.expertdwh.ru:1521:ewh url: jdbc:oracle:thin:@oracle.expertdwh.ru:1521:ewh
username: ewh username: ewh
password: ${EWH_PASSWORD} password: ${EWH_PASSWORD}
pre-script: core-oracle.preScript pre-script: core-oracle.preScript
pool:
pool-name: ewh_ora
minimum-idle: 1
maximum-pool-size: 50
DWH_ORA: DWH_ORA:
url: jdbc:oracle:thin:@oracle.expertdwh.ru:1521:ewh url: jdbc:oracle:thin:@oracle.expertdwh.ru:1521:ewh
username: dwh username: dwh
password: ${DWH_PASSWORD} password: ${DWH_PASSWORD}
pre-script: core-oracle.preScript pre-script: core-oracle.preScript
pool:
pool-name: dwh_ora
minimum-idle: 1
maximum-pool-size: 50
MSSQL: MSSQL:
url: jdbc:sqlserver://;serverName=app.expertdwh.ru;databaseName=master;encrypt=true;trustServerCertificate=true url: jdbc:sqlserver://;serverName=app.expertdwh.ru;databaseName=master;encrypt=true;trustServerCertificate=true
username: sa username: sa
password: ${EWH_PASSWORD} password: ${EWH_PASSWORD}
pool:
pool-name: mssql
minimum-idle: 1
maximum-pool-size: 50
uwh: uwh:
url: jdbc:postgresql://app.expertdwh.ru/uwh?reWriteBatchedInserts=true url: jdbc:postgresql://app.expertdwh.ru/uwh?reWriteBatchedInserts=true
username: uwh username: uwh
password: uwh password: uwh
pool:
pool-name: uwh
minimum-idle: 1
maximum-pool-size: 50
audit.enabled: true audit.enabled: true
hikari:
content: |
minimumIdle=0
maximumPoolSize=12