You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,6 +62,8 @@ The following flags are a list of all the currently supported options that can b
62
62
-**REAL_IP_HEADER** : set to 1 to enable real ip support in the logs
63
63
-**REAL_IP_FROM** : set to your CIDR block for real ip in logs
64
64
-**RUN_SCRIPTS** : Set to 1 to execute scripts
65
+
-**PGID** : Set to GroupId you want to use for nginx (helps permissions when using local volume)
66
+
-**PUID** : Set to UserID you want to use for nginx (helps permissions when using local volume)
65
67
66
68
### Dynamically Pulling code from git
67
69
One of the nice features of this container is its ability to pull code from a git repository with a couple of environmental variables passed at run time. Please take a look at our recommended [repo layout guidelines](https://github.com/ngineered/nginx-php-fpm/blob/master/docs/repo_layout.md).
@@ -105,6 +107,18 @@ To pull a repository and specify a branch add the GIT_BRANCH environment variabl
Sometimes when using data volumes (`-v` flags) permissions issues can arise between the host OS and the container. We avoid this issue by allowing you to specify the user `PUID` and optionally the group `PGID`. Ensure the data volume directory on the host is owned by the same user you specify and it will "just work" ™.
113
+
114
+
An example of mapping the UID and GID to the container is as follows:
This will pull your local UID/GID and map it into the container so you can edit on your host machine and the code will still run in the container.
121
+
108
122
### Custom Nginx Config files
109
123
Sometimes you need a custom config file for nginx to achieve this read the [Nginx config guide](https://github.com/ngineered/nginx-php-fpm/blob/master/docs/nginx_configs.md)
0 commit comments