From acb6694f8215ed09f83099196aa2165ba2c9dbd8 Mon Sep 17 00:00:00 2001 From: Jan Friedli Date: Sun, 29 Mar 2020 14:35:32 +0200 Subject: moved socket file and nginx pid to /tmpfs --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index 3d6625f..f703c0a 100644 --- a/README.md +++ b/README.md @@ -205,7 +205,7 @@ repository: https://0xacab.org/jvoisin/mat2-web/container_registry ### Building the production image Build command: `docker build -f Dockerfile.production -t mat-web .` -Run it: ` docker run -ti -p8181:8080 --security-opt=no-new-privileges --read-only --tmpfs /tmp --tmpfs=/var/www/mat2-web/uploads mat-web:latest` +Run it: `docker run -ti -p8181:8080 --security-opt=no-new-privileges --read-only --tmpfs=/tmp --tmpfs /tmpfs --tmpfs=/var/www/mat2-web/uploads mat-web:latest` This does mount the upload folder as tmpfs and servers the app on `localhost:8181`. -- cgit v1.3