summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorJan Friedli2020-03-28 15:17:45 +0100
committerJan Friedli2020-05-09 21:21:47 +0200
commite53ea9a05167ac9b93594bb1335cae1f2a0afe1f (patch)
tree4480bc6e0e9d2121287f92e569f8f41db913fe14 /README.md
parent40d4fdad9e8ce5872adf18100196fa77044642c1 (diff)
use tmpfs for file storage
Diffstat (limited to 'README.md')
-rw-r--r--README.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/README.md b/README.md
index 44ec789..16990a4 100644
--- a/README.md
+++ b/README.md
@@ -202,6 +202,13 @@ and `Dockerfile.production` is used for production deployments.
202You can find the automated docker builds in the registry of this 202You can find the automated docker builds in the registry of this
203repository: https://0xacab.org/jvoisin/mat2-web/container_registry 203repository: https://0xacab.org/jvoisin/mat2-web/container_registry
204 204
205### Building the production image
206Build command: `docker build -f Dockerfile.production -t mat-web .`
207
208Run it: ` docker run -ti -p8181:8080 --read-only --tmpfs /tmp --tmpfs=/var/www/mat2-web/uploads mat-web:latest`
209
210This does mount the upload folder as tmpfs and servers the app on `localhost:8181`
211
205# Configuration 212# Configuration
206 213
207The default settings from `main.py` may be overridden by adding a `config.py` 214The default settings from `main.py` may be overridden by adding a `config.py`