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: