ecos-apps-app
Purpose:
Microservice image that manages the deployment of ECOS applications and modules
Tags:
nexus.citeck.ru/ecos-apps :<tag> - ecos-apps project build
Docker Compose service template:
ecos-apps:
logging:
options:
max-size: "10m"
max-file: "5"
image: nexus.citeck.ru/ecos-apps:<ECOS_APPS_IMAGE
container_name: ecos-apps
stop_grace_period: 1m
hostname: ecos-apps
restart: on-failure:5
depends_on:
- ecosapps-postgresql
environment:
- JHIPSTER_REGISTRY_PASSWORD=alfr3sc0
- _JAVA_OPTIONS=-Xmx256m -Xms256m
- SPRING_PROFILES_ACTIVE=prod,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_DATASOURCE_URL=jdbc:postgresql://ecosapps-postgresql:5432/eapps
- JHIPSTER_SLEEP=60 # gives time for the JHipster Registry to boot before the application
# ports:
# - 8089:8089
networks:
- app_network
ecosapps-postgresql:
container_name: ecosapps-postgresql
hostname: ecosapps-postgresql
restart: unless-stopped
image: postgres:10.4
stop_grace_period: 1m
environment:
- POSTGRES_USER=eapps
- POSTGRES_PASSWORD=
volumes:
- /opt/micro/postgresql/ecosapps:/var/lib/postgresql/data
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_DATASOURCE_URL - URL of the postgresql datasource used
JHIPSTER_SLEEP - timeout before microservice deployment
Additional:
Documentation on using the Apps microservice
Typical log output for successful deployment:
ecos-apps | ----------------------------------------------------------
ecos-apps | Application 'eapps' is running! Access URLs:
ecos-apps | Local: http://localhost:8089/
ecos-apps | External: http://172.25.0.19:8089/
ecos-apps | Profile(s): [prod, swagger]
ecos-apps | ----------------------------------------------------------
ecos-apps | 2020-05-13 08:40:19.215 INFO 1 --- [ main] ru.citeck.ecos.apps.EcosAppsApp :
ecos-apps | ----------------------------------------------------------
ecos-apps | Config Server: Connected to the JHipster Registry running in Docker
ecos-apps | ----------------------------------------------------------