Browse Source

Add tmp_file as a volume, fix #1780

pull/1781/head
Hironsan 2 years ago
parent
commit
80d4a0bfc1
2 changed files with 4 additions and 0 deletions
  1. 1
      docker/Dockerfile.prod
  2. 3
      docker/docker-compose.prod.yml

1
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/

3
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:

Loading…
Cancel
Save