Skip to content

Unprivileged docker (WIP)#1685

Closed
dokterbob wants to merge 4 commits intoWebODM:masterfrom
treescape-io:unprivileged_docker
Closed

Unprivileged docker (WIP)#1685
dokterbob wants to merge 4 commits intoWebODM:masterfrom
treescape-io:unprivileged_docker

Conversation

@dokterbob
Copy link
Copy Markdown
Contributor

@dokterbob dokterbob commented May 20, 2025

Continuation of #1681.

In addition to a point rightly made on legacy support, the current nginx config expects to run as root.

Cleaner way to address this is arguably to run nginx (or similar) in a separate container (but this might yield challenges around current certbot setup).

nginx issues:

webapp         | nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (13: Permission denied)
webapp         | 2025/05/20 10:28:10 [warn] 58#58: the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /webodm/nginx/nginx.conf:4
webapp         | 2025/05/20 10:28:10 [emerg] 58#58: mkdir() "/var/lib/nginx/body" failed (13: Permission denied)

Guidelines towards this setup (which, as a bonus, upgrades nginx and certbot, which are kinda really critical to security):

Alternative approach might be using something like Traefik or Caddy which have ACME built in (and should yield much smaller image sizes).

Leaving this lingering, for now.

@dokterbob dokterbob force-pushed the unprivileged_docker branch from b3c8600 to 06a924a Compare May 20, 2025 10:35
@dokterbob dokterbob mentioned this pull request May 20, 2025
@pierotofy pierotofy closed this Aug 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants