This is a Zayni Framework's Middle.Service module test application image. More detail you can go to https://gitlab.com/ponylin1985/ZayniFramework.
More detail or example, please go to here.
version: "3"
services:
service-host-serverside:
image: zayni.server.app:alpine-x64
volumes:
- ~/GitRepo/MyGitLab/ZayniFramework/Test/ServiceHostTest/ServiceHost.ServerSide.ConsoleApp/serviceHostConfig.json:/app/serviceHostConfig.json
- ~/GitRepo/MyGitLab/ZayniFramework/Test/ServiceHostTest/ServiceHost.ServerSide.ConsoleApp/App.config:/app/ServiceHost.ServerSide.ConsoleApp.dll.config
- ~/ApplicationLog/ServiceHost.ServerSide.ConsoleApp:/app/Log
ports:
- 1111:1111 # gRPC Host Service Port
- 5591:5591 # TCPSocket Host Port
- 5581:5581 # WebSocket Host Port
- 5110:5110 # HttpCore Host Port
- 2229:2229 # Remote Telnet Command Service Port
container_name: zayni.server.app.test.alpine
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="ZayniFramework" type="ZayniFramework.Common.ZayniConfigSection, ZayniFramework.Common"/>
</configSections>
<ZayniFramework>
<LoggingSettings eventLogEnable="false" logEnable="true">
<DefaultTextLogger>
<add name="_DefaultLog" enable="true" maxSize="8" consoleOutput="true" consoleColor="Yellow">
<!-- ZayniFramework框架預設的文字日誌檔 -->
<LogFile path="Log/Zayni/Tracing.log"/>
<!-- <Filter filterType="deny" category="Information,Warning"/> -->
</add>
<add name="RedisCacheTrace" enable="false" maxSize="8">
<!-- ZaynigFramework Caching 模組對 Redis 請求回應的日誌紀錄 -->
<LogFile path="Log/Zayni/Redis-Tracing.log"/>
<Filter filterType="deny" category="Information,Warning"/>
</add>
<add name="ServiceHostTrace" enable="true" maxSize="8" consoleOutput="true" consoleColor="Yellow">
<!-- ZaynigFramework Middle Service 的文字日誌記錄 -->
<LogFile path="Log/Zayni/Middle.ServiceHost-Tracing.log"/>
<!-- <Filter filterType="deny" category="Information,Warning"/> -->
</add>
<add name="ServiceHostTrace:TCPSocketHost" enable="false" maxSize="8">
<!--ZaynigFramework Middle Service 的服務動作日誌記錄-->
<LogFile path="Log/Zayni/TCPSocketHost-Tracing.log"/>
</add>
<add name="ServiceHostActionLog" enable="true" maxSize="8" consoleOutput="true" consoleColor="Green">
<!-- ZaynigFramework Middle Service 的服務動作日誌記錄 -->
<LogFile path="Log/Zayni/ServiceHostAction-Tracing.log"/>
</add>
</DefaultTextLogger>
</LoggingSettings>
<CachingSettings managerMode="memory">
<CachePool resetEnable="true" cleanerIntervalSecond="5" maxCapacity="10000" refreshIntervalMinute="1"/>
<CacheData timeoutInterval="1"/>
<RedisCache>
<add name="Local-Dev" isDefault="true" dbActionLog="true" host="localhost" port="6379" password="" dbNumber="10" responseTimeout="60000"/>
</RedisCache>
</CachingSettings>
<DataAccessSettings>
<DatabaseProviders>
<add name="Zayni" dataBaseProvider="MySQL" sqlLogEnable="true"/>
<add name="ZayniUnitTest" dataBaseProvider="MySQL" sqlLogEnable="true"/>
</DatabaseProviders>
</DataAccessSettings>
</ZayniFramework>
<appSettings>
<add key="TelnetServerPort" value="2229" />
<add key="TelnetServerPassword" value="Admin123" />
</appSettings>
<connectionStrings>
<!-- MySQL資料庫連線字串: 個人開發環境 (如果是連 MySQL 8.0 以後版本,要加上 SslMode=none)-->
<add name="Zayni" connectionString="SERVER=localhost;DATABASE=zayni;UID=XXX;PASSWORD=XXX;Allow User Variables=True;Charset=utf8;Convert Zero Datetime=True;SslMode=none"
providerName="MySql.Data.MySqlClient"/>
<add name="ZayniUnitTest" connectionString="SERVER=localhost;DATABASE=zayni;UID=XXX;PASSWORD=XXX;Allow User Variables=True;Charset=utf8;Convert Zero Datetime=True;SslMode=none"
providerName="MySql.Data.MySqlClient"/>
</connectionStrings>
</configuration>
{
"enableConsoleTracingLog": true,
"serviceHosts": [
{
"serviceName": "ServiceHost.Test.gRPC",
"remoteHostType": "gRPC",
"hostName": "Local-Dev",
"enableActionLogToDB": true,
"enableActionLogToFile": true
},
{
"serviceName": "ServiceHost.Test.TCPSocket",
"remoteHostType": "TCPSocket",
"hostName": "Local-Dev",
"enableActionLogToDB": true,
"enableActionLogToFile": true,
"autoStart": true
},
{
"serviceName": "ServiceHost.Test.WebSocket",
"remoteHostType": "WebSocket",
"hostName": "Local-Dev",
"enableActionLogToDB": true,
"enableActionLogToFile": true,
"autoStart": true
},
{
"serviceName": "ServiceHost.Test.RabbitMQ",
"remoteHostType": "RabbitMQ",
"hostName": "Local-Dev",
"enableActionLogToDB": true,
"enableActionLogToFile": true,
"autoStart": false
},
{
"serviceName": "ServiceHost.Test.Http",
"remoteHostType": "HttpCore",
"hostName": "Local-Dev",
"enableActionLogToDB": true,
"enableActionLogToFile": true,
"autoStart": true
}
],
"tcpSocketHostSettings": {
"defaultHost": "Local-Dev",
"hosts": [
{
"hostName": "Local-Dev",
"tcpMsgEndsWith": "u0003",
"tcpPort": 5591,
"tcpBufferSizeKB": 5
}
]
},
"webSocketHostSettings": {
"defaultHost": "Local-Dev",
"hosts": [
{
"hostName": "Local-Dev",
"hostBaseUrl": "ws://0.0.0.0:5581",
"whitelist": []
}
]
},
"rabbitMQSettings": {
"defaultHost": "Local-Dev",
"hosts": [
{
"hostName": "Local-Dev",
"mbHost": "localhost",
"mbPort": 5672,
"mbUserId": "pony",
"mbPassword": "Admin123",
"mbVHost": "ZayniTest",
"msgRoutingKey": "Event.Client.",
"msgQueue": "Middle.Server.ListenClient.Msg",
"rpcQueue": "Middle.Server.RPC",
"rpcRoutingKey": "RPC.Server.",
"publishDefaultExchange": "Middle.Test.Topic",
"publishExchange": "Middle.Test.Topic",
"publishRoutingKey": "Event.Server."
}
]
},
"httpCoreSettings": {
"hosts": [
{
"hostName": "Local-Dev",
"hostBaseUrl": "http://0.0.0.0:5110"
}
]
},
"gRPCHostSettings": {
"defaultHost": "Local-Dev",
"hosts": [
{
"hostName": "Local-Dev",
"gRPCHostServer": "0.0.0.0",
"port": 1111
}
]
}
}
Content type
Image
Digest
Size
73.1 MB
Last updated
over 6 years ago
docker pull ponylin1985/zayni.server.app:alpine-x64