updated docker config

This commit is contained in:
Jonas Winkler 2020-10-29 22:30:36 +01:00
parent ae9d3f5aab
commit 505396bc5a
2 changed files with 8 additions and 1 deletions

View File

@ -10,7 +10,7 @@ COPY src-ui/package* ./
RUN npm install RUN npm install
COPY src-ui . 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 ### ### Back end ###

View File

@ -3,6 +3,8 @@ services:
db: db:
image: postgres:13 image: postgres:13
#restart: always #restart: always
volumes:
- pgdata:/var/lib/postgresql/data
environment: environment:
POSTGRES_DB: paperless POSTGRES_DB: paperless
POSTGRES_USER: paperless POSTGRES_USER: paperless
@ -23,6 +25,8 @@ services:
retries: 5 retries: 5
volumes: volumes:
- data:/usr/src/paperless/data - data:/usr/src/paperless/data
- media:/usr/src/paperless/media
- ./export:/usr/src/paperless/export
env_file: docker-compose.env env_file: docker-compose.env
environment: environment:
- PAPERLESS_OCR_LANGUAGES= - PAPERLESS_OCR_LANGUAGES=
@ -36,9 +40,12 @@ services:
restart: on-failure:5 restart: on-failure:5
volumes: volumes:
- data:/usr/src/paperless/data - data:/usr/src/paperless/data
- media:/usr/src/paperless/media
- ./consume:/usr/src/paperless/consume - ./consume:/usr/src/paperless/consume
env_file: docker-compose.env env_file: docker-compose.env
command: ["document_consumer"] command: ["document_consumer"]
volumes: volumes:
data: data:
media:
pgdata: