ecos-process-app
Purpose
Microservice image for business process management
Docker Compose service template
ecos-process-app:
logging:
options:
max-size: "10m"
max-file: "5"
image: nexus.citeck.ru/ecos-process:<ECOS_PROCESS_IMAGE
container_name: ecos-process-app
stop_grace_period: 1m
hostname: ecos-process-app
restart: unless-stopped
depends_on:
- mongo-app
environment:
- JHIPSTER_REGISTRY_PASSWORD=alfr3sc0
- _JAVA_OPTIONS=-Xmx256m -Xms256m
- SPRING_PROFILES_ACTIVE=dev,swagger
- EUREKA_CLIENT_SERVICE_URL_DEFAULTZONE=http://admin:$${jhipster.registry.password}@jhipster-registry:8761/eureka
- SPRING_CLOUD_CONFIG_URI=http://admin:$${jhipster.registry.password}@jhipster-registry:8761/config
- SPRING_DATA_MONGODB_URI=mongodb://ecos-process:ecos-process-password@mongo-app:27017/ecos-process
- ECOS_INIT_DELAY=120
expose:
- 8098/tcp
networks:
- app_network
Used variables
_JAVA_OPTIONS - parameters for jvm
SPRING_PROFILES_ACTIVE - profiles used during deployment
EUREKA_CLIENT_SERVICE_URL_DEFAULTZONE - URL of the default eureka load balancer, contains credentials
SPRING_CLOUD_CONFIG_URI - URL of the cloud config server used, contains credentials
JHIPSTER_REGISTRY_PASSWORD - user password for authentication in eureka load balancer
SPRING_DATA_MONGODB_URI - URL of the mongodb datasource used
JHIPSTER_SLEEP - timeout before microservice deployment
Typical log output for successful deployment
ecos-process-app | ----------------------------------------------------------
ecos-process-app | Application 'eproc' is running! Access URLs:
ecos-process-app | Local: http://localhost:8098/
ecos-process-app | External: http://172.26.0.26:8098/
ecos-process-app | Profile(s): [dev, swagger]
ecos-process-app | ----------------------------------------------------------
ecos-process-app | 2020-05-14 06:30:07.511 INFO 1 --- [ main] ru.citeck.ecos.process.EprocApp :
ecos-process-app | ----------------------------------------------------------
ecos-process-app | Config Server: Connected to the JHipster Registry running in Docker
ecos-process-app | ----------------------------------------------------------