@ -1,27 +1,20 @@ |
|||||
# DockerPythonFlask |
# DockerPythonFlask |
||||
|
|
||||
This is a dockerized version of a Python3 Flask Server. |
This is a dockerized version of a Python3 Flask Server. |
||||
|
|
||||
## Environment-variables |
## Environment-variables |
||||
|
|
||||
There are no environment variables that are needed. |
There are no environment variables that are needed. |
||||
|
|
||||
## Volumes |
## Volumes |
||||
|
|
||||
Set the following volumes with the -v tag. |
Set the following volumes with the -v tag. |
||||
|
|
||||
| Volume-Name | Container mount | Description | |
|
||||
| ----------- | --------------- | ----------- | |
|
||||
| app | /flask | directory for flask application | |
|
||||
|
| Volume-Name | Container mount | Description | |
||||
|
| ----------- | --------------- | ------------------------------- | |
||||
|
| app | /flask | directory for flask application | |
||||
|
|
||||
## Ports |
## Ports |
||||
|
|
||||
Set the following volumes with the -p tag. |
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 |
||||
|
|
||||
``` 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 ``` |
||||