bugfixes: README.md reformatted

dependabot/pip/src/flask-2.3.2
TiynGER 4 years ago
parent 3a30e24343
commit c14d839505

@ -4,7 +4,8 @@
This is a simple blog based on Pythons Flask framework. This is a simple blog based on Pythons Flask framework.
The basic design is based on LukeSmithXYZs blog. The basic design is based on LukeSmithXYZs blog.
However I dislike using a script for adding entries and just want to add entries via plain text files. However I dislike using a script for adding entries and just want to add entries
via plain text files.
## Features/To-Dos ## Features/To-Dos
@ -58,11 +59,11 @@ The `config.py` can be found in the `src` folder.
Set the following volumes with the -v tag. Set the following volumes with the -v tag.
| Volume-Name | Container mount | Description | | Volume-Name | Container mount | Description |
| ----------- | ------------------------- | ------------------------------------------------------------ | | ------------- | --------------------------- | ------------------------------------------------------------ |
| config-file | /blog/src/config.py | Config file | | `config-file` | `/blog/src/config.py` | Config file |
| entries | /blog/src/templates/entry | Directory for blog entries | | `entries` | `/blog/src/templates/entry` | Directory for blog entries |
| css | /blog/src/static/css | (optional) Directory for css files | | `css` | `/blog/src/static/css` | (optional) Directory for css files |
| html | /blog/src/templates | (optional) Directory for templates (entry-volume not needed) | | `html` | `/blog/src/templates` | (optional) Directory for templates (entry-volume not needed) |
#### Ports #### Ports
@ -70,10 +71,13 @@ Set the following ports with the -p tag.
| Container-Port | Recommended outside port | Protocol | Description | | Container-Port | Recommended outside port | Protocol | Description |
| -------------- | ------------------------ | -------- | ----------- | | -------------- | ------------------------ | -------- | ----------- |
| 5000 | 80 | TCP | HTTP port | | `5000` | `80` | TCP | HTTP port |
#### Example run-command #### Example run-command
Either use the docker image `tiynger/beaker-blog` or run `docker build . -t beaker-blog` in the top directory of this repository.
If so you need to change the command below apropiately (`tiynger/beaker-blog` to `beaker-blog`). Either use the docker image `tiynger/beaker-blog` or run
`docker build . -t beaker-blog` in the top directory of this repository.
If so you need to change the command below apropiately
(`tiynger/beaker-blog` to `beaker-blog`).
`docker run --name blog --restart unless-stopped -v ./config.py:/blog/src/config.py -v entries:/blog/src/templates/entry -p 80:5000 -d tiynger/beaker-blog` `docker run --name blog --restart unless-stopped -v ./config.py:/blog/src/config.py -v entries:/blog/src/templates/entry -p 80:5000 -d tiynger/beaker-blog`

Loading…
Cancel
Save