mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	 147f8f72a2
			
		
	
	147f8f72a2
	
	
	
		
			
			The export workflow reusing the `/consume` volume is complex and error- prone, and not at all necessary if the `docker-compose.yml` file has a volume for `/export` from the beginning.
		
			
				
	
	
		
			38 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| version: '2'
 | |
| 
 | |
| services:
 | |
|     webserver:
 | |
|         image: paperless
 | |
|         ports:
 | |
|             # You can adapt the port you want Paperless to listen on by
 | |
|             # modifying the part before the `:`.
 | |
|             - "8000:8000"
 | |
|         volumes:
 | |
|             - paperless-data:/usr/src/paperless/data
 | |
|             - paperless-media:/usr/src/paperless/media
 | |
|         env_file: docker-compose.env
 | |
|         environment:
 | |
|             - PAPERLESS_OCR_LANGUAGES=
 | |
|         command: ["runserver", "0.0.0.0:8000"]
 | |
| 
 | |
|     consumer:
 | |
|         image: paperless
 | |
|         volumes:
 | |
|             - paperless-data:/usr/src/paperless/data
 | |
|             - paperless-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 ':'.
 | |
|             - /path/to/arbitrary/place:/consume
 | |
|             # Likewise, you can add a local path to mount a directory for
 | |
|             # exporting. This is not strictly needed for paperless to
 | |
|             # function, only if you're exporting your files: uncomment
 | |
|             # it and fill in a local path if you know you're going to 
 | |
|             # want to export your documents.
 | |
|             # - /path/to/another/arbitrary/place:/export
 | |
|         env_file: docker-compose.env
 | |
|         command: ["document_consumer"]
 | |
| 
 | |
| volumes:
 | |
|     paperless-data:
 | |
|     paperless-media:
 |