Docker¶
KissLog can be run as a Docker application, thanks to Marcio valuable contribution.
The official KissLog Docker repositories are the following:
Running KissLog as a Docker application will automatically install all the necessary prerequisites.
Table of contents
Docker files¶
To get started running KissLog as a Docker application, create the following files:
/KissLog_Docker
├── docker-compose.yml
├── backend.appsettings.json
├── backend.KissLog.json
├── frontend.appsettings.json
└── frontend.KissLog.json
Download Docker files
Full working example of the files above can also be download from here.
KissLog.Frontend will read the configuration options from KissLog_Docker\frontend.KissLog.json
.
KissLog.Backend will read the configuration options from KissLog_Docker\backend.KissLog.json
.
version: "3.7"
networks:
default:
name: kisslog-net
driver_opts:
com.docker.network.driver.mtu: 1380
services:
backend:
image: catalingavan/kisslog.backend:3.1.1
container_name: kisslog.backend.dev
restart: unless-stopped
volumes:
- ./backend.appsettings.json:/app/appsettings.json
- ./backend.KissLog.json:/app/Configuration/KissLog.json
ports:
- "44088:80"
links:
- "mongodb"
frontend:
image: catalingavan/kisslog.frontend:3.1.1
container_name: kisslog.frontend.dev
restart: unless-stopped
volumes:
- ./frontend.appsettings.json:/app/appsettings.json
- ./frontend.KissLog.json:/app/Configuration/KissLog.json
ports:
- "44080:80"
links:
- "backend"
- "mariadb"
mongodb:
image: mongo
container_name: kisslog.mongodb.dev
restart: unless-stopped
volumes:
- mongo-data:/data/db
- mongo-config:/data/configdb
mariadb:
image: mariadb
container_name: kisslog.mariadb.dev
restart: unless-stopped
volumes:
- mariadb-data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: pass
MYSQL_DATABASE: KissLog_Frontend_Dev
volumes:
mariadb-data:
mongo-data:
mongo-config:
{
"Logging": {
"LogLevel": {
"Default": "Warning",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Warning"
}
},
"ApplicationType": "OnPremises",
"ConfigurationFilePath": "Configuration/KissLog.json",
"KissLogCloud": "",
"AllowedHosts": "*",
"Kestrel": {
"EndPoints": {
"Http": {
"Url": "http://0.0.0.0:80"
}
}
}
}
{
"KissLogBackendUrl": "http://kisslog.backend.dev",
"KissLogFrontendUrl": "http://kisslog.frontend.dev",
"Database": {
"Provider": "MySql",
"KissLogDbContext": "server=kisslog.mariadb.dev;port=3306;database=KissLog_Frontend_Dev;uid=root;password=pass;Charset=utf8;"
},
"/* Other configuration options */": ""
}
{
"Logging": {
"LogLevel": {
"Default": "Warning",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Warning"
}
},
"ConfigurationFilePath": "Configuration/KissLog.json",
"AllowedHosts": "*",
"Kestrel": {
"EndPoints": {
"Http": {
"Url": "http://0.0.0.0:80"
}
}
}
}
{
"KissLogBackendUrl": "http://kisslog.backend.dev",
"KissLogFrontendUrl": "http://kisslog.frontend.dev",
"Database": {
"Provider": "MongoDb",
"MongoDb": {
"ConnectionString": "mongodb://kisslog.mongodb.dev:27017",
"DatabaseName": "KissLogDev"
}
},
"/* Other configuration options */": ""
}
Build¶
To spawn KissLog and all the necessary prerequisites, use docker-compose up
command.
C:\KissLog_Docker> docker-compose up
KissLog.Frontend will be exposed to http://localhost:44080/
.
KissLog.Backend will be exposed to http://localhost:44088/
.

KissLog.Frontend |
KissLog.Backend |
---|---|
![]() |
![]() |
Destroy¶
C:\KissLog_Docker> docker-compose down
