You can also use gutter icons and the context menu in the Docker Compose file to run and manage services. To quickly create a Docker-compose run configuration and run it with default settings, right-click a Docker Compose file in the Project tool window and click Run in the context menu. If necessary, you can define the services that this configuration will start, specify environment variables, and force building of images before starting corresponding containers (that is, add the -build option for the docker-compose up command).įor more information about the available options, see Docker-compose run configuration.Ĭlick OK to save the Docker Compose run configuration, select it in the main toolbar and click or press Shift+F10 to start the configuration. Specify the Docker Compose files with your service definitions. Open the Installed tab, find the Docker plugin, and select the checkbox next to the plugin name.ĭefine necessary services in one or several Docker Compose files.įrom the main menu, select Run | Edit Configurations.Ĭlick, point to Docker and then click Docker-compose. Press Ctrl+Alt+S to open the IDE settings and select Plugins. If the relevant features aren't available, make sure that you didn't disable the plugin. This functionality relies on the Docker plugin, which is bundled and enabled in PhpStorm by default. This enables you to perform efficient development and testing in a dynamic environment, similar to production. Each service can be scaled by adding more containers if necessary. For example, you can run a web server, a backend database, and your application code as separate services. Docker Compose is used to run multi-container applications.
0 Comments
Leave a Reply. |