File tree Expand file tree Collapse file tree 2 files changed +22
-4
lines changed Expand file tree Collapse file tree 2 files changed +22
-4
lines changed Original file line number Diff line number Diff line change 11# Advanced Configuration
22
3+ ## Running processes as a user/group
4+
5+ By default, the services (nginx etc) will run as ` root ` user inside the docker container.
6+ You can change this behaviour by setting the following environment variables.
7+ Not only will they run the services as this user/group, they will change the ownership
8+ on the ` data ` and ` letsencrypt ` folders at startup.
9+
10+ ``` yml
11+ services :
12+ app :
13+ image : ' jc21/nginx-proxy-manager:latest'
14+ environment :
15+ PUID : 1000
16+ PGID : 1000
17+ # ...
18+ ```
19+
20+ This may have the side effect of a failed container start due to permission denied trying
21+ to open port 80 on some systems. The only course to fix that is to remove the variables
22+ and run as the default root user.
23+
324## Best Practice: Use a Docker network
425
526For those who have a few of their upstream services running in Docker on the same Docker
Original file line number Diff line number Diff line change @@ -64,9 +64,6 @@ services:
6464 # Add any other Stream port you want to expose
6565 # - '21:21' # FTP
6666 environment :
67- # Unix user and group IDs, optional
68- PUID : 1000
69- PGID : 1000
7067 # Mysql/Maria connection parameters:
7168 DB_MYSQL_HOST : " db"
7269 DB_MYSQL_PORT : 3306
@@ -90,7 +87,7 @@ services:
9087 MYSQL_USER : ' npm'
9188 MYSQL_PASSWORD : ' npm'
9289 volumes :
93- - ./data/ mysql:/var/lib/mysql
90+ - ./mysql:/var/lib/mysql
9491` ` `
9592
9693::: warning
You can’t perform that action at this time.
0 commit comments