webstack/docker-toolbar-bundle

This package is abandoned and no longer maintained. No replacement package was suggested.

Docker toolbar bundle

v0.1.1 2023-01-24 20:01 UTC

This package is auto-updated.

Last update: 2023-10-25 11:26:56 UTC


README

Simple Symfony Bundle to use with Symfony CLI and Docker to easily access Docker services on random port numbers.

How to use

Use Symfony CLI with the Docker Integration as described at the Symfony Server docs. Docker will use random port numbers for each service when it's container is started making it difficult to access web based UI's in those containers.

Symfony CLI adds links in the special CLI section of the toolbar for RabbitMQ UI, MailCatcher and Blackfire. Others like phpMyAdmin and Adminer are not (yet) supported. See this issue for more information. Until there is a flexible solution within Symfony CLI, we have created this solution.

These bundle re-uses the environment variables created by Symfony CLI, so no additional configuration is required. If Symfony CLI generated an URL environment variable for a service, that one is ued. If not, it is composed out of the HOST and PORT environment variables. Some services are filtered based on there protocol (only when _URL environment variable is given).

Installation

composer require webstack/docker-toolbar-bundle --dev

Example

docker-toolbar.png

Contributing

Suggestions for improving and extending functionality of this bundle are welcome.

Note: I am not a Go developer, so sadly I can't help out with writing an implementation within Symfony CLI itself.