4 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'
@ -20,7 +20,7 @@ services:
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