I have a Laravel 10 project which is based on laradock (cloned from https://github.com/Laradock/laradock). I’d like to connect the laravel application with an external LDAP server which does contain the users authorized to connect to my application.
I read a lot about docker’s external networks but I haven’t found the way to set them in laradock’s docker-compose.yml.
Can anyone give me a hint please ?
I used
docker-compose up -d --build apache2 phpmyadmin
to create the containers listed below
Creating laradock_mariadb_1 ... done
Creating laradock_docker-in-docker_1 ... done
Creating laradock_workspace_1 ... done
Creating laradock_phpmyadmin_1 ... done
Creating laradock_php-fpm_1 ... done
Creating laradock_apache2_1 ... done
I tried to declare a “ldap” network at the beginning of the docker-compose.yml using the bridge driver
version : "3"
networks:
frontend:
driver: ${NETWORKS_DRIVER}
backend:
driver: ${NETWORKS_DRIVER}
ldap:
driver: ${NETWORKS_DRIVER}
and then call the network in the containers “workspace” and “php-fpm”
networks:
- frontend
- backend
- ldap
Dominique Goubet is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.