Browse Source

Update README.md

master
Marten Kante 9 months ago
committed by GitHub
parent
commit
8f7f42c83c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 11 deletions
  1. +4
    -11
      README.md

+ 4
- 11
README.md

@ -1,27 +1,20 @@
# DockerPythonFlask
This is a dockerized version of a Python3 Flask Server.
## Environment-variables
There are no environment variables that are needed.
## Volumes
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
Set the following volumes with the -p tag.
| Container-Port | Recommed outside port | Protocol | Description |
| -------------- | --------------------- | -------- | ----------- |
| 5000 | 80 | TCP | HTTP port |
| 5000 | 80 | TCP | HTTP port |
## Example run-command
``` docker run --name flask -v flask:/flask --restart unless-stopped -d -p 80:5000 tiynger/pythonflask ```

Loading…
Cancel
Save