mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Merge pull request #65 from pitkley/fix/issue-44-docker
Update env-var in Dockerfile, fix volume names
This commit is contained in:
		| @@ -19,8 +19,8 @@ RUN mkdir -p /usr/src/paperless/src | |||||||
| COPY src/ /usr/src/paperless/src/ | COPY src/ /usr/src/paperless/src/ | ||||||
|  |  | ||||||
| # Set consumption directory | # Set consumption directory | ||||||
| ENV PAPERLESS_CONSUME /consume | ENV PAPERLESS_CONSUMPTION_DIR /consume | ||||||
| RUN mkdir -p $PAPERLESS_CONSUME | RUN mkdir -p $PAPERLESS_CONSUMPTION_DIR | ||||||
|  |  | ||||||
| # Migrate database | # Migrate database | ||||||
| WORKDIR /usr/src/paperless/src | WORKDIR /usr/src/paperless/src | ||||||
|   | |||||||
| @@ -8,8 +8,8 @@ services: | |||||||
|             # modifying the part before the `:`. |             # modifying the part before the `:`. | ||||||
|             - "8000:8000" |             - "8000:8000" | ||||||
|         volumes: |         volumes: | ||||||
|             - paperless-data:/usr/src/paperless/data |             - data:/usr/src/paperless/data | ||||||
|             - paperless-media:/usr/src/paperless/media |             - media:/usr/src/paperless/media | ||||||
|         env_file: docker-compose.env |         env_file: docker-compose.env | ||||||
|         environment: |         environment: | ||||||
|             - PAPERLESS_OCR_LANGUAGES= |             - PAPERLESS_OCR_LANGUAGES= | ||||||
| @@ -18,8 +18,8 @@ services: | |||||||
|     consumer: |     consumer: | ||||||
|         image: paperless |         image: paperless | ||||||
|         volumes: |         volumes: | ||||||
|             - paperless-data:/usr/src/paperless/data |             - data:/usr/src/paperless/data | ||||||
|             - paperless-media:/usr/src/paperless/media |             - media:/usr/src/paperless/media | ||||||
|             # You have to adapt the local path you want the consumption |             # You have to adapt the local path you want the consumption | ||||||
|             # directory to mount to by modifying the part before the ':'. |             # directory to mount to by modifying the part before the ':'. | ||||||
|             - /path/to/arbitrary/place:/consume |             - /path/to/arbitrary/place:/consume | ||||||
| @@ -33,5 +33,5 @@ services: | |||||||
|         command: ["document_consumer"] |         command: ["document_consumer"] | ||||||
|  |  | ||||||
| volumes: | volumes: | ||||||
|     paperless-data: |     data: | ||||||
|     paperless-media: |     media: | ||||||
|   | |||||||
| @@ -16,8 +16,8 @@ map_uidgid() { | |||||||
|  |  | ||||||
| set_permissions() { | set_permissions() { | ||||||
|     # Set permissions for consumption directory |     # Set permissions for consumption directory | ||||||
|     chgrp paperless "$PAPERLESS_CONSUME" |     chgrp paperless "$PAPERLESS_CONSUMPTION_DIR" | ||||||
|     chmod g+x "$PAPERLESS_CONSUME" |     chmod g+x "$PAPERLESS_CONSUMPTION_DIR" | ||||||
|  |  | ||||||
|     # Set permissions for application directory |     # Set permissions for application directory | ||||||
|     chown -Rh paperless:paperless /usr/src/paperless |     chown -Rh paperless:paperless /usr/src/paperless | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Daniel Quinn
					Daniel Quinn