mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 03:16:10 -06:00 
			
		
		
		
	feat: add env allowing paperless to run in read_only filesystem (#5596)
This commit is contained in:
		@@ -1,14 +1,15 @@
 | 
				
			|||||||
#!/usr/bin/env bash
 | 
					#!/usr/bin/env bash
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					SUPERVISORD_WORKING_DIR="${PAPERLESS_SUPERVISORD_WORKING_DIR:-$PWD}"
 | 
				
			||||||
rootless_args=()
 | 
					rootless_args=()
 | 
				
			||||||
if [ "$(id -u)" == "$(id -u paperless)" ]; then
 | 
					if [ "$(id -u)" == "$(id -u paperless)" ]; then
 | 
				
			||||||
	rootless_args=(
 | 
						rootless_args=(
 | 
				
			||||||
		--user
 | 
							--user
 | 
				
			||||||
		paperless
 | 
							paperless
 | 
				
			||||||
		--logfile
 | 
							--logfile
 | 
				
			||||||
		supervisord.log
 | 
							"${SUPERVISORD_WORKING_DIR}/supervisord.log"
 | 
				
			||||||
		--pidfile
 | 
							--pidfile
 | 
				
			||||||
		supervisord.pid
 | 
							"${SUPERVISORD_WORKING_DIR}/supervisord.pid"
 | 
				
			||||||
	)
 | 
						)
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1341,6 +1341,12 @@ started by the container.
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    You can read more about this in the [advanced documentation](advanced_usage.md#celery-monitoring).
 | 
					    You can read more about this in the [advanced documentation](advanced_usage.md#celery-monitoring).
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#### [`PAPERLESS_SUPERVISORD_WORKING_DIR=<defined>`](#PAPERLESS_SUPERVISORD_WORKING_DIR) {#PAPERLESS_SUPERVISORD_WORKING_DIR}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					: If this environment variable is defined, the `supervisord.log` and `supervisord.pid` file will be created under the specified path in `PAPERLESS_SUPERVISORD_WORKING_DIR`. Setting `PAPERLESS_SUPERVISORD_WORKING_DIR=/tmp` and `PYTHONPYCACHEPREFIX=/tmp/pycache` would allow paperless to work on a read-only filesystem.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    Please take note that the `PAPERLESS_DATA_DIR` and `PAPERLESS_MEDIA_ROOT` paths still have to be writable, just like the `PAPERLESS_SUPERVISORD_WORKING_DIR`. The can be archived by using bind or volume mounts. Only works in the container is run as user *paperless*
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Frontend Settings
 | 
					## Frontend Settings
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#### [`PAPERLESS_APP_TITLE=<bool>`](#PAPERLESS_APP_TITLE) {#PAPERLESS_APP_TITLE}
 | 
					#### [`PAPERLESS_APP_TITLE=<bool>`](#PAPERLESS_APP_TITLE) {#PAPERLESS_APP_TITLE}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user