Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

jc21
Copy link
Member

@jc21 jc21 commented Mar 26, 2023

Main change: run services inside the docker as a particular user/group, and the ownership of data/letsencrypt would also belong to this user/group.

Defaults to 911:911, seems to be the standard for linuxservers.

Define with PUID and GUID env vars.

jc21 added 17 commits March 20, 2023 16:56
with PUID and PGID environment variables

- Detects if image is run with a user in docker command and fails if so
- Adds s6 prepare scripts for adding a 'npmuser'
- Split up and refactor the s6 prepare scripts
- Runs nginx and backend node as 'npmuser'
- Changes ownership of files required at startup
- No longer use config npm package
- Prefer config from env vars, though still has support for config file
- No longer writes a config file for database config
- Writes keys to a new file in /data folder
- Removes a lot of cruft and improves config understanding
Docker users and groups, refactor configuration
@nginxproxymanagerci
Copy link

Docker Image for build 2 is available on DockerHub as jc21/nginx-proxy-manager:github-pr-2749

Note: ensure you backup your NPM instance before testing this PR image! Especially if this PR contains database changes.

@jc21 jc21 merged commit e1bcef6 into master Mar 27, 2023
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.

1 participant