tc.unifiedcommercesalestax.middletier
801
This repository contains images for the TrueCommerce Sales Tax Service Middle Tier
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
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
| Variable Name | Description | Example |
|---|---|---|
| IMAGE_VERSION | Version component of the tag | 1.0.250.0000 |
| INITIALIZATION_CERT | Initialization certificate generated by security tools | |
| COREODATA_HOST | Location of the Core OData (MSI) services | https://localhost:30000 |
| SECURITY_MICROSERVICE_HOST | Location of the Security Microservice | https://localhost:30100 |
| FOUNDRY_PLATFORM_HOST | Public root URL of Foundry | https://foundry.truecommerce.com/ |
| RABBIT_CONNECTION | Connection string for RabbitMQ instance used by Foundry | rabbitmq://localhost |
| RABBIT_USER | The username for the Foundry RabbitMQ connection | tc |
| RABBIT_PASSWORD | The password for the Foundry RabbitMQ connection | tc |
| REDIS_PASSWORD | Password for Redis instance | |
| ELASTIC_HOST | Elastic Search URL | http://localhost:9200 |
| MT_HOST | External name or IP where nginx will be run | localhost |
| MT_PORT | External port used to load balance and proxy for this middle tier | 12595 |
Content type
Image
Digest
sha256:45138d976…
Size
95 MB
Last updated
almost 4 years ago
docker pull truecommerce/tc.unifiedcommercesalestax.middletier