diff options
| author | Jan Friedli | 2020-03-28 15:17:45 +0100 |
|---|---|---|
| committer | Jan Friedli | 2020-05-09 21:21:47 +0200 |
| commit | e53ea9a05167ac9b93594bb1335cae1f2a0afe1f (patch) | |
| tree | 4480bc6e0e9d2121287f92e569f8f41db913fe14 /README.md | |
| parent | 40d4fdad9e8ce5872adf18100196fa77044642c1 (diff) | |
use tmpfs for file storage
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` |
