Sign inSign up

truecommerce/tc.unifiedcommercesalestax.middletier

By truecommerce

Updated almost 4 years ago

tc.unifiedcommercesalestax.middletier

Image
0

801

truecommerce/tc.unifiedcommercesalestax.middletier repository overview

TrueCommerce Sales Tax Service Middle Tier

This repository contains images for the TrueCommerce Sales Tax Service Middle Tier

Usage

Prior to running the container the application requires an Administrator Certificate from Foundry Platform. One way this can be obtained is by running the associated tool from the Foundry Security Tools. Follow the steps in the "Generate authentication certificate" and save the output.

This certificate is only used to initialize the Middle Tiers and is needed every time a Middle Tier comes online. The exception would be if another instance of the same middle tier has cached an application specific version in a distributed cache which is still running and valid. As such the value should either be a long lived certificate (years) or be regularly updated to ensure issues don't exist when starting up the Middle Tier.

The Middle Tier supports running multiple instances simultaneously and is recommended for high volume production environments.

The recommended configuration also includes using Redis as a cache provider

Docker Compose Example

This is an example of a full production deployment docker-compose file including multiple nodes for the Middle Tiers:

version: '2.4'
services:
  redis:
    container_name: redis
    hostname: redis
    image: redis
    command: redis-server --requirepass ${REDIS_PASSWORD}
    restart: unless-stopped

mt_reverseproxy: image: truecommerce/foundry.middletier.reverseproxy:2.1 restart: unless-stopped environment: - ASPNETCORE_ENVIRONMENT=Development - TrueCommerce__ReverseProxy__PollingFrequency=0.6:0:00 - TrueCommerce__ReverseProxy__ExpiryCheckFrequency=0.0:00:30 - TrueCommerce__ReverseProxy__Redis__Connection=redis:6379,password=${REDIS_PASSWORD} - Logging__LogLevel__Default=Information - Logging__LogLevel__Microsoft=Warning - Logging__LogLevel__Microsoft.Hosting.Lifetime=Information - Logging__LogLevel__Yarp=None ports: - ${MT_PORT}:80/p>

unifiedcommercesalestaxmiddletier: image: truecommerce/tc.unifiedcommercesalestax.middletier:${IMAGE_VERSION} container_name: UnifiedCommerceSalesTax_MT restart: unless-stopped environment: - ASPNETCORE_ENVIRONMENT=Development - MiddleTier__InitializationCertificate=${INITIALIZATION_CERT} - MiddleTier__CorsOriginAllowed=http://localhost:30000;http://localhost:${MT_PORT} - MiddleTier__Caching__Provider=Redis - MiddleTier__Caching__Redis_Configuration__Connection=redis:6379,password=${REDIS_PASSWORD} - MiddleTier__Caching__Redis_Configuration__InstanceName="UnifiedCommerceSalesTaxCache:" - MiddleTier__Caching__Redis_Configuration__UseWithNHibernate=true - MiddleTier__Registration__MiddleTierHost=unifiedcommercesalestaxmiddletier:80 - MiddleTier__Registration__ProvidersHost=unifiedcommercesalestaxmiddletier:80 - MiddleTier__Registration__ArrInboundRootUrl=${FOUNDRY_PLATFORM_HOST} - MiddleTier__Registration__ReverseProxyHost=${MT_HOST}:${MT_PORT}/UnifiedCommerceSalesTax${IMAGE_VERSION} - MiddleTier__Registration__SupportsAlerts=false - MiddleTier__Registration__SupportsMetadata=false - MiddleTier__Registration__SupportsScheduledTasks=false - MiddleTier__Registration__RegisterGlobalTenant=true - MiddleTier__Registration__MobileApplication__AlwaysDeploy=true - MiddleTier__Registration__MobileApplication__PackagePath=../Deploy/MobileUi.a1pkg - Foundry__Security__RootUrl=${SECURITY_MICROSERVICE_HOST} - Foundry__CoreOData__RootUrl=${COREODATA_HOST} - Foundry__RabbitMQ__Host=${RABBIT_CONNECTION} - Foundry__RabbitMQ__Username=${RABBIT_USER} - Foundry__RabbitMQ__Password=${RABBIT_PASSWORD} - Foundry__RabbitMQ__Timeout=0.00:00:15 - Logging__ElasticSearch__nodeUris=%{ELASTIC_HOST} - Logging__LogLevels__Audit=None - Logging__LogLevels__Foundry=Warning - Logging__LogLevels__TrueCommerce.UnifiedCommerceSalesTax=Warning links: - redis

Environment Variables Used (.env file)

Variable NameDescriptionExample
IMAGE_VERSIONVersion component of the tag1.0.250.0000
INITIALIZATION_CERTInitialization certificate generated by security tools
COREODATA_HOSTLocation of the Core OData (MSI) serviceshttps://localhost:30000
SECURITY_MICROSERVICE_HOSTLocation of the Security Microservicehttps://localhost:30100
FOUNDRY_PLATFORM_HOSTPublic root URL of Foundryhttps://foundry.truecommerce.com/
RABBIT_CONNECTIONConnection string for RabbitMQ instance used by Foundryrabbitmq://localhost
RABBIT_USERThe username for the Foundry RabbitMQ connectiontc
RABBIT_PASSWORDThe password for the Foundry RabbitMQ connectiontc
REDIS_PASSWORDPassword for Redis instance
ELASTIC_HOSTElastic Search URLhttp://localhost:9200
MT_HOSTExternal name or IP where nginx will be runlocalhost
MT_PORTExternal port used to load balance and proxy for this middle tier12595

Tag summary

Content type

Image

Digest

sha256:45138d976

Size

95 MB

Last updated

almost 4 years ago

docker pull truecommerce/tc.unifiedcommercesalestax.middletier