expert-isa-2-cicd/docker-compose.yml

97 lines
2.7 KiB
YAML

services:
eisa:
image: git.expertdwh.ru/ewh/expertisa:${BRANCH}
pull_policy: always
restart: unless-stopped
deploy:
replicas: 2
configs:
- source: app_config
target: /data/application.yaml
- source: hikari
target: /data/hikari.properties
entrypoint: ["java", "-Dhikaricp.configurationFile=/data/hikari.properties", "-jar", "/app.war"]
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:
app_config:
content: |
infinispan:
embedded:
enabled: true
cluster-name: eisa-${BRANCH}
eisa:
force-core-update: true
metadata-git:
url: https://git.expertdwh.ru/EWH/expert-isa-2-metadata
branch: ${BRANCH}
enabled: true
token: ${GIT_TOKEN}
file-store-type: s3
s3:
endpoint: minio.app.expertdwh.ru
port: 9000
access-key: ZfyTrAp9tsxkvfyyEIbC
secret-key: jurIHMBGQ54HLu0CXwLSDiahhT6JV6qwZTFhqO37
bucket: dev
db:
common-datasource-name: psql
jdbc:
psql:
url: jdbc:postgresql://psql-${BRANCH}:5432/expertisa-metadata
username: admin
password: admin
EWH:
url: jdbc:postgresql://adb-master.expertdwh.ru:5432/ewh
username: ewh
password: ${EWH_PASSWORD}
pre-script: core-postgresql.preScript
post-script: core-postgresql.postScript
EWH_ORA:
url: jdbc:oracle:thin:@oracle.expertdwh.ru:1521:ewh
username: ewh
password: ${EWH_PASSWORD}
DWH_ORA:
url: jdbc:oracle:thin:@oracle.expertdwh.ru:1521:ewh
username: dwh
password: ${DWH_PASSWORD}
audit.enabled: true
logging:
level:
com:
zaxxer:
hikari: DEBUG
hikari:
content: |
maximumPoolSize=3