tayagrand.blogg.se

Phpstorm docker mysql
Phpstorm docker mysql













phpstorm docker mysql phpstorm docker mysql

The docker folder contains all docker-related files except for Docker Compose YAMLs. I put all files for local (development) purpose into a local sub-folder. bring your containers up on the testing environemnt by running: docker-compose -f up -build -dĪs local environment is used most often, I prefer local YAML files not to have “.local” suffix, so that I don’t need to specify the list of files each time for docker-compose commands.put Dockerfiles and configs to docker/testing folder.This is becasue you might want to keep different Dockerfiles and configs for diferent environments in your repository as well. docker/local/nginx/conf/nf:/etc/nginx/conf.d/nf The only trick here is using YAML alias ( codebase) not to repeat ourselves with mounting application volume to both nginx and php-fpm containers. docker/local/php/conf/custom-config.ini:/usr/local/etc/php/conf.d/custom-config.iniĬommand: Īs you can see I also prefer to name my services in a more abstract way than just “php” or “nginx”. I like it more because I can change the underlying technology later without much pain (i.e. I also include the app name in the service name so that it is possible to run different, let’s say, php containers in the same network.















Phpstorm docker mysql