diff options
| author | Jan Friedli | 2020-04-02 23:19:50 +0200 |
|---|---|---|
| committer | Jan Friedli | 2020-05-09 21:24:00 +0200 |
| commit | 1406e00069b5f6bad70c95ed1a0b26059ca61358 (patch) | |
| tree | 71d60360e6c25715302dcf208305be54407928b4 /README.md | |
| parent | d75515179f6e074ae6c069cc9fc294984df5a008 (diff) | |
added podman commands
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 7 |
1 files changed, 6 insertions, 1 deletions
| @@ -195,10 +195,15 @@ repository: https://0xacab.org/jvoisin/mat2-web/container_registry | |||
| 195 | ### Building the production image | 195 | ### Building the production image |
| 196 | Build command: `docker build -f Dockerfile.production -t mat-web .` | 196 | Build command: `docker build -f Dockerfile.production -t mat-web .` |
| 197 | 197 | ||
| 198 | Run it: `docker run -ti -p8181:8080 --read-only --tmpfs /tmp --tmpfs /run/uwsgi --tmpfs=/app/uploads mat-web:latest` | 198 | Run it: `docker run -ti -p8181:8080 --read-only --tmpfs /tmp --tmpfs /run/uwsgi --tmpfs=/app/upload mat-web:latest` |
| 199 | 199 | ||
| 200 | This does mount the upload folder as tmpfs and servers the app on `localhost:8181`. | 200 | This does mount the upload folder as tmpfs and servers the app on `localhost:8181`. |
| 201 | 201 | ||
| 202 | ##### Podman | ||
| 203 | Build: `podman build -f Dockerfile.production -t matweb-podman .` | ||
| 204 | |||
| 205 | Run: `podman run -ti -p8181:8080 --read-only --tmpfs /tmp --tmpfs /run/uwsgi --tmpfs=/app/upload matweb-podman:latest` | ||
| 206 | |||
| 202 | # Configuration | 207 | # Configuration |
| 203 | 208 | ||
| 204 | The default settings from `main.py` may be overridden by adding a `config.py` | 209 | The default settings from `main.py` may be overridden by adding a `config.py` |
