Repository navigation
Davis on Proxmox TrueNAS Scale SMB SQLite Docker-compose #164
Description
Activity
@tchapi maybe you want to fix something upstream but not needed.
Feel free to close this here!
Thanks for the clear write up. I think 44eae84 is the solution to the
../.envproblem (the env var was not bubbled up the container via the example compose file)Can you confirm by any chance?
Hello @tikr7 👋🏼
Have you had a change to test the commit in my message above? Thanks!Still have it on my todo list. I was 1 week off.
I hope I can do it today in the evening =)I hope I can do it today in the evening =)
No pressure at all, just wanted to make sure we can converge on a solution :) I'll be less active in the coming two weeks in any case
Cool. I tested it and I can confirm
WEBDAV_HOMES_DIRworks now in.env!
I updated my manual above.Another thing I found out during my testing: Just if I use docker-compose-sqlite.yml with the default
- davis_data:/data(my manual uses SMB mount there) then after:#⚠ Do not forget to run all the database migrations the first time you run the container : sudo docker exec -it davis sh -c "APP_ENV=prod bin/console doctrine:migrations:migrate --no-interaction"It creates the
/data/davis-database.dbas root.
The following needs to be done then:sudo docker exec -it davis sh -c "chown www-data: /data /data/davis-database.db" # Yes, possible also with -RHard to debug because the Davis homepage only gives a non-meaningful error when trying to create a user.
It creates the /data/davis-database.db as root.
As yes, it's expected.
I'll add a warning in the README, thanks!EDIT: it's already in there in the fullstack section (the warning block): https://github.com/tchapi/davis?tab=readme-ov-file#full-stack
True, I missed that.
Thank you so much for your support, @tchapi !Reacted by Cyril Chapellier(Closing this issue for housekeeping but I'll probably add a section with "how-to's" in the readme soon)
→ https://github.com/tchapi/davis?tab=readme-ov-file#-how-tos
Fix missing permissions on /var/www/davis:
vi Dockerfile ... RUN chown -R ${FPM_USER} /var/www/davis USER $FPM_USER ...THANK YOU, this fixed my docker-compose deployment.
Reacted by Cyril Chapellier
I switched to a Proxmox and TrueNAS Scale setup (as time of writing TrueNAS Charts got depricated) and was looking for a solution to manage WebDAV via GUI. Davis is really great for that because it separates users very well. Other WebDAV servers require one instance per user which is really in annoying.
In the past I used Nextcloud for it, but it is slow and updates were a huge pain. One day my Nextcloud instance got corrupted (the PostgreSQL to be more specific).
However, it took me some time to get it fully up and running, and therefore I want to write it down. Perhaps it helps somebody else in the future.
Some decisions I took:
Mount SMB:
I use the following folder structure:
Checkout repo:
Fix Webdav Nginx: 413 Request Enity Too Large
Fix missing permissions on /var/www/davis:
A bunch of configs:
Adjusting the docker-compose file:
Let's start it =)