Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

document use of tmpfs with Docker #624

Closed
kc9jud opened this issue Jan 12, 2023 · 2 comments
Closed

document use of tmpfs with Docker #624

kc9jud opened this issue Jan 12, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@kc9jud
Copy link

kc9jud commented Jan 12, 2023

Describe the feature you'd like to request

I realized that, since #365, Recognize is using /tmp pretty heavily during recognition. I also realized that the default Docker Compose configuration doesn't use a tmpfs for /tmp within the container. This means it's hammering the storage writing and reading temporary image files. If you're on spinning rust, this can be slow, and if you're on SSD/flash, this can hasten the failure of your disk.

Describe the solution you'd like

It might be useful to document (somewhere?) that when using Docker (Compose), if the server is not memory-constrained, one should add an additional volume for /tmp:

docker run: Add --mount type=tmpfs,destination=/tmp to command line.

docker compose: Add the following to the volume section docker-compose.yml:

  app:
    image: nextcloud:25
    ...
    volumes:
      - type: tmpfs
        target: /tmp
      ...
    ...

Describe alternatives you've considered

Alternatively, this could/should be an issue with https://github.com/nextcloud/docker.

@kc9jud kc9jud added the enhancement New feature or request label Jan 12, 2023
@kc9jud
Copy link
Author

kc9jud commented Jan 14, 2023

See also: #629

@Lipown
Copy link

Lipown commented May 2, 2023

I used this but then I was not able to have shared link of any file / folder persistent more than a minute. So either it is a bug or I do not recommend this method :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants