Open thangvubk opened 6 years ago
Hello, can you tell us more about what you are trying to achieve ?
Usually with docker you don't want to set static ip on containers, it's better to use a reverse proxy that match the service with the container ip, maybe take a look to traefik
Thank you for quick response. I have a server and a client. Ip for server and client are 192.168.0.1 and 192.168.0.2 respectively. I want to set the ip for ldapserver is 192.168.0.1 so the client can know and connect to the server.
you mean i can use reverse proxy in docker-compose file?
Vu Van Thang Ha Noi university of science and technology Phone numbers: 01648538155
2017-12-27 21:37 GMT+09:00 Bertrand Gouny notifications@github.com:
The easiest way is to use docker-compose, here an example : https://github.com/osixia/docker-openldap/blob/stable/ example/docker-compose.yml
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/osixia/docker-phpLDAPadmin/issues/37#issuecomment-354108105, or mute the thread https://github.com/notifications/unsubscribe-auth/ATnfxY1KbHTpk3sKep0zCj17E9Sp521rks5tEjocgaJpZM4RNaWg .
Any update with this? I've tried installed traefik but don't seem to help.
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
75b9f433d75e osixia/phpldapadmin:0.7.1 "/container/tool/run" 26 minutes ago Up 26 minutes 80/tcp, 443/tcp phpldapadmin-service
9ff20075f13f osixia/openldap:1.1.8 "/container/tool/run" 26 minutes ago Up 26 minutes 389/tcp, 636/tcp ldap-service
f12ae5df9bd9 traefik "/traefik" 30 minutes ago Up 30 minutes 0.0.0.0:80->80/tcp, 0.0.0.0:8080->8080/tcp condescending_lalande
How can i set the server ip for phpldapadmin. For example, i want to set the server ip is 192.168.0.1