Browse Source

bugfixes: README.md reformatted

master
TiynGER 1 month ago
parent
commit
ba5372a4d2
1 changed files with 8 additions and 6 deletions
  1. +8
    -6
      README.md

+ 8
- 6
README.md

@ -1,4 +1,4 @@
#
# Docker Python Flask
This is a dockerized version of a Python3 Flask Server. This is a dockerized version of a Python3 Flask Server.
@ -8,7 +8,7 @@ Set the following volumes with the -v tag.
| Volume-Name | Container mount | Description | | Volume-Name | Container mount | Description |
| ----------- | --------------- | ------------------------------- | | ----------- | --------------- | ------------------------------- |
| app | /flask | directory for flask application |
| app | /flask | directory for flask application |
## Ports ## Ports
@ -16,14 +16,16 @@ Set the following volumes with the -p tag.
| Container-Port | Recommed outside port | Protocol | Description | | Container-Port | Recommed 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/pythonflask` or run `docker build . -t pythonflask` in the top directory of this repository.
If so you need to change the command below apropiately (`tiynger/pythonflask` to `pythonflask`).
Either use the docker image `tiynger/pythonflask` or run
`docker build . -t pythonflask` in the top directory of this repository.
If so you need to change the command below apropiately
(`tiynger/pythonflask` to `pythonflask`).
` docker run --name flask -v flask:/flask --restart unless-stopped -d -p 80:5000 tiynger/pythonflask `
`docker run --name flask -v flask:/flask --restart unless-stopped -d -p 80:5000 tiynger/pythonflask`
## Included Python3 packages ## Included Python3 packages

Loading…
Cancel
Save