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
This image comes with a phpLDAPadmin config.php file that can be easily customized via environment variables for a quick bootstrap,
65
65
but setting your own config.php is possible. 2 options:
66
66
67
-
- Link your config file at run time to `/container/service/phpldapadmin/assets/config.php` :
67
+
- Link your config file at run time to `/container/service/phpldapadmin/assets/config/config.php` :
68
68
69
-
docker run --volume /data/my-config.php:/container/service/phpldapadmin/assets/config.php --detach osixia/phpldapadmin:0.6.12
69
+
docker run --volume /data/my-config.php:/container/service/phpldapadmin/assets/config/config.php --detach osixia/phpldapadmin:0.7.0
70
70
71
71
- Add your config file by extending or cloning this image, please refer to the [Advanced User Guide](#advanced-user-guide)
72
72
@@ -75,7 +75,7 @@ but setting your own config.php is possible. 2 options:
75
75
#### Use autogenerated certificate
76
76
By default HTTPS is enable, a certificate is created with the container hostname (it can be set by docker run --hostname option eg: phpldapadmin.my-company.com).
77
77
78
-
docker run --hostname phpldapadmin.my-company.com --detach osixia/phpldapadmin:0.6.12
78
+
docker run --hostname phpldapadmin.my-company.com --detach osixia/phpldapadmin:0.7.0
79
79
80
80
#### Use your own certificate
81
81
@@ -85,22 +85,22 @@ You can set your custom certificate at run time, by mounting a directory contain
Other solutions are available please refer to the [Advanced User Guide](#advanced-user-guide)
91
91
92
92
#### Disable HTTPS
93
93
Add --env PHPLDAPADMIN_HTTPS=false to the run command :
94
94
95
-
docker run --env PHPLDAPADMIN_HTTPS=false --detach osixia/phpldapadmin:0.6.12
95
+
docker run --env PHPLDAPADMIN_HTTPS=false --detach osixia/phpldapadmin:0.7.0
96
96
97
97
### Fix docker mounted file problems
98
98
99
99
You may have some problems with mounted files on some systems. The startup script try to make some file adjustment and fix files owner and permissions, this can result in multiple errors. See [Docker documentation](https://docs.docker.com/v1.4/userguide/dockervolumes/#mount-a-host-file-as-a-data-volume).
100
100
101
101
To fix that run the container with `--copy-service` argument :
102
102
103
-
docker run [your options] osixia/phpldapadmin:0.6.12 --copy-service
103
+
docker run [your options] osixia/phpldapadmin:0.7.0 --copy-service
104
104
105
105
### Debug
106
106
@@ -109,11 +109,11 @@ Available levels are: `none`, `error`, `warning`, `info`, `debug` and `trace`.
109
109
110
110
Example command to run the container in `debug` mode:
111
111
112
-
docker run --detach osixia/phpldapadmin:0.6.12 --loglevel debug
112
+
docker run --detach osixia/phpldapadmin:0.7.0 --loglevel debug
113
113
114
114
See all command line options:
115
115
116
-
docker run osixia/phpldapadmin:0.6.12 --help
116
+
docker run osixia/phpldapadmin:0.7.0 --help
117
117
118
118
## Environment Variables
119
119
@@ -133,7 +133,7 @@ See how to [set your own environment variables](#set-your-own-environment-variab
133
133
- ldap3.example.org
134
134
```
135
135
This will be converted in the phpldapadmin config.php file to :
To convert yaml to python online: http://yaml-online-parser.appspot.com/
172
172
@@ -203,14 +203,14 @@ Other environment variables:
203
203
Environment variables can be set by adding the --env argument in the command line, for example:
204
204
205
205
docker run --env PHPLDAPADMIN_LDAP_HOSTS="ldap.example.org" \
206
-
--detach osixia/phpldapadmin:0.6.12
206
+
--detach osixia/phpldapadmin:0.7.0
207
207
208
208
#### Link environment file
209
209
210
210
For example if your environment file is in : /data/environment/my-env.yaml
211
211
212
212
docker run --volume /data/environment/my-env.yaml:/container/environment/01-custom/env.yaml \
213
-
--detach osixia/phpldapadmin:0.6.12
213
+
--detach osixia/phpldapadmin:0.7.0
214
214
215
215
Take care to link your environment file to `/container/environment/XX-somedir` (with XX < 99 so they will be processed before default environment files) and not directly to `/container/environment` because this directory contains predefined baseimage environment files to fix container environment (INITRD, LANG, LANGUAGE and LC_CTYPE).
216
216
@@ -220,18 +220,18 @@ This is the best solution if you have a private registry. Please refer to the [A
220
220
221
221
## Advanced User Guide
222
222
223
-
### Extend osixia/phpldapadmin:0.6.12 image
223
+
### Extend osixia/phpldapadmin:0.7.0 image
224
224
225
225
If you need to add your custom TLS certificate, bootstrap config or environment files the easiest way is to extends this image.
0 commit comments