diff --git a/Dockerfile b/Dockerfile index 5fa6df7c4..2a689c98e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,7 @@ COPY src-ui/package* ./ RUN npm install COPY src-ui . -RUN node_modules/.bin/ng build --prod --output-hashing none +RUN node_modules/.bin/ng build --prod --output-hashing none --sourceMap=false ############################################################################### ### Back end ### diff --git a/docker-compose.yml.example b/docker-compose.yml.example index 563bec742..5c5123fd8 100644 --- a/docker-compose.yml.example +++ b/docker-compose.yml.example @@ -3,6 +3,8 @@ services: db: image: postgres:13 #restart: always + volumes: + - pgdata:/var/lib/postgresql/data environment: POSTGRES_DB: paperless POSTGRES_USER: paperless @@ -23,6 +25,8 @@ services: retries: 5 volumes: - data:/usr/src/paperless/data + - media:/usr/src/paperless/media + - ./export:/usr/src/paperless/export env_file: docker-compose.env environment: - PAPERLESS_OCR_LANGUAGES= @@ -36,9 +40,12 @@ services: restart: on-failure:5 volumes: - data:/usr/src/paperless/data + - media:/usr/src/paperless/media - ./consume:/usr/src/paperless/consume env_file: docker-compose.env command: ["document_consumer"] volumes: data: + media: + pgdata: