The simplest blog engine written on .net 6
10K+
Simple-blog is a free and open-source simplest blog engine written on .net 6.
You can find more information on https://github.com/anmalkov/simple-blog
$ docker run -d -p 8080:80 --name simple-blog anmalkov/simple-blog
When you start the simple-blog image, you can adjust the initialization of the simple-blog instance by passing one or more environment variables on the docker run command line.
SIMPLEBLOG_ACCESSCODEThis variable set an admin password. This allows you to login to an administrator area, where you can manage the posts, pages, menu, etc. To get there you have to go to /login page and enter the access code that you specified in this environment variable.
The following is an example of using this variable to create a Simple-blog instance and specify your access code.
$ docker run -d -p 8080:80 --name simple-blog -e SIMPLEBLOG_ACCESSCODE=Test1234! anmalkov/simple-blog
APPLICATIONINSIGHTS_CONNECTION_STRINGThis variable set a connection string for Azure Application Insights. This allows you to enable full monitoring for your website including client-side monitoring. You can find the connection string on the General tab of your Application Insights resource in Azure Portal or by executing the next Azure CLI command:
$ az monitor app-insights component show --app application-insights-resource-name -g resourcegroup-name --query "connectionString"
The following is an example of using this variable.
$ docker run -d -p 8080:80 --name simple-blog -e APPLICATIONINSIGHTS_CONNECTION_STRING=your-connection-string anmalkov/simple-blog
Important note: There are several ways to store data used by simple-blog that run in Docker containers including:
The Docker documentation is a good starting point for understanding the different storage options and variations, and there are multiple blogs and forum postings that discuss and give advice in this area. We will simply show the basic procedure here for the latter option above:
Create a data directory on a suitable volume on your host system, e.g. /my/own/datadir.
Start your simple-blog container like this:
$ docker run -d -p 8080:80 --name simple-blog -e SIMPLEBLOG_ACCESSCODE=Test1234! -v /my/own/datadir:/app/data anmalkov/simple-blog
The -v /my/own/datadir:/app/data part of the command mounts the /my/own/datadir directory from the underlying host system as /app/data inside the container, where Simple-blog by default will write its data files.
View license information for the software contained in this image.
Content type
Image
Digest
sha256:7dbb49e54…
Size
89.9 MB
Last updated
about 4 years ago
docker pull anmalkov/simple-blog