diff options
| author | Jan Friedli | 2020-03-29 14:35:32 +0200 |
|---|---|---|
| committer | Jan Friedli | 2020-05-09 21:21:48 +0200 |
| commit | acb6694f8215ed09f83099196aa2165ba2c9dbd8 (patch) | |
| tree | 013aac524e535ad7c7342758c7968978e2baa1d7 /README.md | |
| parent | 465f1151d963dced746da0e7d6c3dc1a0bd5b8df (diff) | |
moved socket file and nginx pid to /tmpfs
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -205,7 +205,7 @@ repository: https://0xacab.org/jvoisin/mat2-web/container_registry | |||
| 205 | ### Building the production image | 205 | ### Building the production image |
| 206 | Build command: `docker build -f Dockerfile.production -t mat-web .` | 206 | Build command: `docker build -f Dockerfile.production -t mat-web .` |
| 207 | 207 | ||
| 208 | 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` | 208 | 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` |
| 209 | 209 | ||
| 210 | This does mount the upload folder as tmpfs and servers the app on `localhost:8181`. | 210 | This does mount the upload folder as tmpfs and servers the app on `localhost:8181`. |
| 211 | 211 | ||
