diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 7 |
1 files changed, 7 insertions, 0 deletions
| @@ -202,6 +202,13 @@ and `Dockerfile.production` is used for production deployments. | |||
| 202 | You can find the automated docker builds in the registry of this | 202 | You can find the automated docker builds in the registry of this |
| 203 | repository: https://0xacab.org/jvoisin/mat2-web/container_registry | 203 | repository: https://0xacab.org/jvoisin/mat2-web/container_registry |
| 204 | 204 | ||
| 205 | ### Building the production image | ||
| 206 | Build command: `docker build -f Dockerfile.production -t mat-web .` | ||
| 207 | |||
| 208 | Run it: ` docker run -ti -p8181:8080 --read-only --tmpfs /tmp --tmpfs=/var/www/mat2-web/uploads mat-web:latest` | ||
| 209 | |||
| 210 | This does mount the upload folder as tmpfs and servers the app on `localhost:8181` | ||
| 211 | |||
| 205 | # Configuration | 212 | # Configuration |
| 206 | 213 | ||
| 207 | The default settings from `main.py` may be overridden by adding a `config.py` | 214 | The default settings from `main.py` may be overridden by adding a `config.py` |
