mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-02 18:47:10 -05:00 
			
		
		
		
	Set consume directory for webserver too
Fixes #289 The HTTP POST endpoint saves the file in the consume directory. This needs to be shared between the two services so that the file is actually consumed.
This commit is contained in:
		
							parent
							
								
									7b4785bdb9
								
							
						
					
					
						commit
						cbc5f0603f
					
				@ -17,6 +17,9 @@ services:
 | 
				
			|||||||
        volumes:
 | 
					        volumes:
 | 
				
			||||||
            - data:/usr/src/paperless/data
 | 
					            - data:/usr/src/paperless/data
 | 
				
			||||||
            - media:/usr/src/paperless/media
 | 
					            - media:/usr/src/paperless/media
 | 
				
			||||||
 | 
											# You have to adapt the local path you want the consumption
 | 
				
			||||||
 | 
					            # directory to mount to by modifying the part before the ':'.
 | 
				
			||||||
 | 
											- ./consume:/consume
 | 
				
			||||||
        env_file: docker-compose.env
 | 
					        env_file: docker-compose.env
 | 
				
			||||||
        # The reason the line is here is so that the webserver that doesn't do
 | 
					        # The reason the line is here is so that the webserver that doesn't do
 | 
				
			||||||
        # any text recognition and doesn't have to install unnecessary
 | 
					        # any text recognition and doesn't have to install unnecessary
 | 
				
			||||||
@ -36,8 +39,8 @@ services:
 | 
				
			|||||||
        volumes:
 | 
					        volumes:
 | 
				
			||||||
            - data:/usr/src/paperless/data
 | 
					            - data:/usr/src/paperless/data
 | 
				
			||||||
            - media:/usr/src/paperless/media
 | 
					            - media:/usr/src/paperless/media
 | 
				
			||||||
            # You have to adapt the local path you want the consumption
 | 
					            # This should be set to the same value as the consume directory
 | 
				
			||||||
            # directory to mount to by modifying the part before the ':'.
 | 
										  # in the webserver service above.
 | 
				
			||||||
            - ./consume:/consume
 | 
					            - ./consume:/consume
 | 
				
			||||||
            # Likewise, you can add a local path to mount a directory for
 | 
					            # Likewise, you can add a local path to mount a directory for
 | 
				
			||||||
            # exporting. This is not strictly needed for paperless to
 | 
					            # exporting. This is not strictly needed for paperless to
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user