Skip to content

Problems mounting a volume #640

@lucasbraun77

Description

@lucasbraun77

How do you handle volumes in Docker Compose?

If I use:

volumes:

  • ./uploads:/var/www/html/public/uploads
  • ./storage:/var/www/html/storage

it doesn't work, because within the image, the images and files are saved in /var/www/bookstack/storage and /var/www/bookstack/uploads.
But if I put those paths in the Docker Compose volumes:, the container doesn't start; it restarts constantly.
I want the images and files attached to the bookstack documents to be stored on the host for space and backup reasons.
Can you help me? Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions