File tree 2 files changed +22
-4
lines changed
2 files changed +22
-4
lines changed Original file line number Diff line number Diff line change 1
1
# Advanced Configuration
2
2
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
+
3
24
## Best Practice: Use a Docker network
4
25
5
26
For 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:
64
64
# Add any other Stream port you want to expose
65
65
# - '21:21' # FTP
66
66
environment :
67
- # Unix user and group IDs, optional
68
- PUID : 1000
69
- PGID : 1000
70
67
# Mysql/Maria connection parameters:
71
68
DB_MYSQL_HOST : " db"
72
69
DB_MYSQL_PORT : 3306
@@ -90,7 +87,7 @@ services:
90
87
MYSQL_USER : ' npm'
91
88
MYSQL_PASSWORD : ' npm'
92
89
volumes :
93
- - ./data/ mysql:/var/lib/mysql
90
+ - ./mysql:/var/lib/mysql
94
91
` ` `
95
92
96
93
::: warning
You can’t perform that action at this time.
0 commit comments