mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Transitions the Docker image to use s6 and s6-overlay for process supervision instead of supervisord (#8886)
This commit is contained in:
		
							
								
								
									
										10
									
								
								docker/rootfs/etc/s6-overlay/s6-rc.d/svc-webserver/run
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										10
									
								
								docker/rootfs/etc/s6-overlay/s6-rc.d/svc-webserver/run
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,10 @@ | ||||
| #!/command/with-contenv /usr/bin/bash | ||||
| # shellcheck shell=bash | ||||
|  | ||||
| cd ${PAPERLESS_SRC_DIR} | ||||
|  | ||||
| if [[ -n "${USER_IS_NON_ROOT}" ]]; then | ||||
| 	exec /usr/local/bin/gunicorn -c /usr/src/paperless/gunicorn.conf.py paperless.asgi:application | ||||
| else | ||||
| 	exec s6-setuidgid paperless /usr/local/bin/gunicorn -c /usr/src/paperless/gunicorn.conf.py paperless.asgi:application | ||||
| fi | ||||
		Reference in New Issue
	
	Block a user
	 Trenton H
					Trenton H