From 80d4a0bfc118cbe724468e7e2834d9639a483984 Mon Sep 17 00:00:00 2001 From: Hironsan Date: Wed, 13 Apr 2022 19:28:13 +0900 Subject: [PATCH] Add tmp_file as a volume, fix #1780 --- docker/Dockerfile.prod | 1 + docker/docker-compose.prod.yml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/docker/Dockerfile.prod b/docker/Dockerfile.prod index 818c4562..17bea6f5 100644 --- a/docker/Dockerfile.prod +++ b/docker/Dockerfile.prod @@ -34,6 +34,7 @@ COPY --chown=doccano:doccano tools/ /opt/bin/ RUN mkdir -p /backend/staticfiles \ && mkdir -p /backend/client/dist/static \ && mkdir -p /backend/media \ + && mkdir -p /backend/filepond-temp-uploads \ && chown -R doccano:doccano /backend/ COPY --chown=doccano:doccano ./backend/ /backend/ diff --git a/docker/docker-compose.prod.yml b/docker/docker-compose.prod.yml index 13284f4c..fa642f2d 100644 --- a/docker/docker-compose.prod.yml +++ b/docker/docker-compose.prod.yml @@ -9,6 +9,7 @@ services: volumes: - static_volume:/backend/staticfiles - media:/backend/media + - tmp_file:/backend/filepond-temp-uploads environment: ADMIN_USERNAME: "${ADMIN_USERNAME}" ADMIN_PASSWORD: "${ADMIN_PASSWORD}" @@ -31,6 +32,7 @@ services: image: doccano_celery:prod volumes: - media:/backend/media + - tmp_file:/backend/filepond-temp-uploads entrypoint: ["/opt/bin/prod-celery.sh"] environment: PYTHONUNBUFFERED: "1" @@ -85,6 +87,7 @@ volumes: postgres_data: static_volume: media: + tmp_file: networks: network-backend: