mirror of
https://0xacab.org/jvoisin/mat2-web.git
synced 2025-02-23 16:49:59 -05:00
Revert "moved socket file and nginx pid to /tmpfs"
This reverts commit 4731cf86b1a1a380235948cc82b2ee5fbd35f11d.
This commit is contained in:
parent
acb6694f82
commit
e69d97e7ed
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
From registry.0xacab.org/georg/mat2-ci-images:debian
|
From registry.0xacab.org/georg/mat2-ci-images:debian
|
||||||
|
|
||||||
LABEL maintainer="Mat2-Web Co-Maintainer <jan.friedli@immerda.ch>"
|
LABEL maintainer="Mat-Web Co-Maintainer <jan.friedli@immerda.ch>"
|
||||||
|
|
||||||
WORKDIR /var/www/mat2-web
|
WORKDIR /var/www/mat2-web
|
||||||
|
|
||||||
|
@ -205,7 +205,7 @@ repository: https://0xacab.org/jvoisin/mat2-web/container_registry
|
|||||||
### Building the production image
|
### Building the production image
|
||||||
Build command: `docker build -f Dockerfile.production -t mat-web .`
|
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 /tmpfs --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=/var/www/mat2-web/uploads mat-web:latest`
|
||||||
|
|
||||||
This does mount the upload folder as tmpfs and servers the app on `localhost:8181`.
|
This does mount the upload folder as tmpfs and servers the app on `localhost:8181`.
|
||||||
|
|
||||||
|
@ -9,6 +9,6 @@ server {
|
|||||||
location / { try_files $uri @yourapplication; }
|
location / { try_files $uri @yourapplication; }
|
||||||
location @yourapplication {
|
location @yourapplication {
|
||||||
include uwsgi_params;
|
include uwsgi_params;
|
||||||
uwsgi_pass unix:/tmpfs/uwsgi.sock;
|
uwsgi_pass unix:/tmp/uwsgi.sock;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
worker_processes auto;
|
worker_processes auto;
|
||||||
pid /tmpfs/nginx.pid;
|
pid /tmp/nginx.pid;
|
||||||
include /etc/nginx/modules-enabled/*.conf;
|
include /etc/nginx/modules-enabled/*.conf;
|
||||||
|
|
||||||
events {
|
events {
|
||||||
@ -13,6 +13,7 @@ http {
|
|||||||
# Basic Settings
|
# Basic Settings
|
||||||
##
|
##
|
||||||
|
|
||||||
|
sendfile on;
|
||||||
tcp_nopush on;
|
tcp_nopush on;
|
||||||
tcp_nodelay on;
|
tcp_nodelay on;
|
||||||
keepalive_timeout 65;
|
keepalive_timeout 65;
|
||||||
|
@ -13,7 +13,7 @@ gid = 101
|
|||||||
harakiri = 30
|
harakiri = 30
|
||||||
die-on-term = true
|
die-on-term = true
|
||||||
|
|
||||||
socket = /tmpfs/uwsgi.sock
|
socket = /tmp/uwsgi.sock
|
||||||
chmod-socket = 774
|
chmod-socket = 774
|
||||||
plugins = python3
|
plugins = python3
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user