mirror of
https://github.com/HaschekSolutions/opentrashmail.git
synced 2026-04-25 06:35:55 +03:00
[GH-ISSUE #86] Docker container exits : file permissions #61
Labels
No labels
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentrashmail#61
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @slfhstr on GitHub (Jun 30, 2024).
Original GitHub issue: https://github.com/HaschekSolutions/opentrashmail/issues/86
Using docker-compose and these volume settings :
On start, the container exits and the logs show :
even though
SKIP_FILEPERMISSIONS=true@ceramicwhite commented on GitHub (Jul 2, 2024):
the container service is run as user nginx(100:101) and if docker created your data dir on start it will most like be owned by root unless using rootless docker.
run chown on the data dir:
sudo chown -R 100:101 ./datathen restart the container
@slfhstr commented on GitHub (Jul 2, 2024):
Thank you.
I did that but the container still exited immediately.
So I did the same on the
./logsdirectory and the container started ok.docker logs show :
But accessing via the app URL returns
Internal Server Errordocker-compose.yml is :
If you have any thoughts on this, I'd be grateful.
Letsencrypt generated by Traefik and the domain shows valid certificate in browser.
No errors in Traefik dashboard - all services running.
@slfhstr commented on GitHub (Jul 16, 2024):
OK, after some tinkering, I now have the container starting and the site loads a page (not tested further yet).
In case it helps others, this is my working
docker-compose.ymlwith Traefik support :And in
config.iniI have this :I guess this can be closed after you have reviewed unless you have any comments.