ddev | Docker-based local PHP+Node.js web development environments | Continuous Deployment library
kandi X-RAY | ddev Summary
kandi X-RAY | ddev Summary
ddev is an open source tool that makes it simple to get local PHP development environments up and running in minutes. It's powerful and flexible as a result of its per-project environment configurations, which can be extended, version controlled, and shared. In short, ddev aims to allow development teams to use Docker in their workflow without the complexities of bespoke configuration.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ddev
ddev Key Features
ddev Examples and Code Snippets
Community Discussions
Trending Discussions on ddev
QUESTION
I'm trying to define a volume in ddev like this:
Filename: docker-compose.salesforce.yaml
Contents:
...ANSWER
Answered 2022-Mar-31 at 06:51You're trying to mount ~/JWT from the host into ~/JWT inside the container?
The environment variables are evaluated on the host by docker-compose, which doesn't know anything about what's inside the container, so you'll need to use absolute paths for inside the container, as you already did.
I think this might work for you on Linux or macOS:
QUESTION
I'm running ddev under wsl2. I'm behind the zscaler proxy. I was able to copy the zscaler cert to ubuntu "/usr/local/share/ca-certificates" and ran "sudo update-ca-certificates". After that i was able to install homebrew and ddev. However, when i created the drupal 9 site and use the command "ddev composer create "drupal/recommended-project" --no-install", it gave me "ubuntu curl: (60) ssl certificate problem: self signed certificate in certificate chain". I also tried to copy the zscaler cert into the web container but still got the same issue. How do I circumvent this issue?
...ANSWER
Answered 2022-Mar-23 at 23:49This is a problem that you and your IT department will have to solve. I imagine you have not just a proxy but also the VPN you're using is likely doing deep packet inspection and has a replacement CA for the trusted CA that the rest of the internet uses.
If you don't have a VPN, but only a proxy, then you need to properly configure docker for the proxy, see https://github.com/drud/ddev-contrib/tree/master/recipes/proxy - but since you're getting untrusted certs, it looks to me like there's more going on than just a proxy.
If your IT department can provide you with a replacement CA crt you can put it into .ddev/web-build and add a .ddev/web-build/Dockerfile like this:
QUESTION
After running ddev start
i cannot run magento commands from outside of the container.
ANSWER
Answered 2022-Mar-23 at 17:45You don't mention your environment but I imagine you're on macOS with Docker and have enabled experimental settings. Please turn them off... they don't really work right yet. See macOS DDEV drush command Permission denied (Experimental docker settings)
QUESTION
We are a group of developers that work on multiple ddev projects. Some of these projects have a "." in their name, which by now breaks the PhpStorm integration.
Is there an easy way to rename a project and allow all other developers to tell ddev (after they pulled the new ddev config.yaml), what the previous project name was, so data (like database) could be migrated?
...ANSWER
Answered 2022-Mar-22 at 21:24Please use the instructions in the DDEV FAQ "How can I change the name of a project?"
Use this process:
- Export the database of the project: ddev export-db --file=/path/to/db.sql.gz
- ddev delete . By default this will make a snapshot, which is a nice safety valve.
- Rename the project, ddev config --project-name=
- ddev start
- ddev import-db --src=/path/to/db.sql.gz
QUESTION
When I updated ddev version 1.19.0 then drush command doesn't work.
...ANSWER
Answered 2022-Mar-22 at 00:56You don't say much about your environment, but I imagine you're on macOS and you installed Docker Desktop 4.6.0+ and you enabled the experimental virtualization and VirtioFS features. Please uncheck them, they're not ready for prime time. For performance, I recommend enabling mutagen, people love it, https://ddev.readthedocs.io/en/latest/users/performance/#using-mutagen
QUESTION
When configuring ddev with a project TLD it becomes unreachable when replacing "docker desktop" with "docker-ce".
project_tld: testing
How can I reach the project again from my local machine and from our company LAN?
...ANSWER
Answered 2022-Mar-15 at 13:11The reason for the website becoming unreachable is that WSL2 only binds ports to the localhost and not to every interface.
Docker desktop itself binds to every interface and forwards everything to WSL2 that is why it worked. For docker-ce a manual solution is required.
The problem is documented in the wsl documentation and a solution is described.
A script for discovering and setting the port forwarding automatically is found in an older WSL2 issue on github.
With the localhostForwarding option set (documentation) for WSL2 the following commands work too:
netsh interface portproxy add v4tov4 listenport=80 connectport=80 connectaddress=127.0.0.1
netsh interface portproxy add v4tov4 listenport=443 connectport=443 connectaddress=127.0.0.1
In some future version Microsoft may bring the bridged networking option back for WSL2 see issue discussion.
QUESTION
I am working on two Drupal (7 and 9) projects which use PostgreSQL (based on the procedure described here). I noticed errors when they are both running at the same time: Drupal 7 will complain the variable
table does not exist, while Drupal 9 will disconnect me or display some kind of WSOD. Oddly enough, they can randomly work correctly or crash again on page reload. However, it gets perfectly fine when I turn one off.
All this makes me think of some trouble with the way I configured PostgreSQL. Could you please help me find what might be wrong in my setup?
Here is my configuration for Drupal 9. docker-compose.postgres.yaml:
...ANSWER
Answered 2022-Mar-14 at 00:27Update for DDEV v1.19+
- Postgres is now available of the box with DDEV, so there is no need for an additional service/container.
- You no longer have to use an explicit name for the container, since the networking in DDEV is now more sophisticated.
--------- Original Answer Below ----------
You're using $host = "postgres";
, please use the explicit name of the postgres container, ddev--postgres
The hostname postgres
is ambiguous inside the docker network when you're running more than one project that has a service named "postgres". So you're getting the behavior you see.
A PR to the ddev-contrib recipe would be appreciated; this has been updated in lots of the ddev-contrib recipes since the problem was discovered a year or so ago, but apparently not this one.
QUESTION
This is what i get after i use ddev start on new or any other projects. I clear all docker images, volumes, etc... and problem repeats again...
Does anybody has the same problem, does it have any connection with versions:
- Docker version 20.10.11
- Docker Compose version 2.2.0
- ddev version v1.18.0
ANSWER
Answered 2022-Mar-12 at 00:02This is worked around in DDEV v1.18.2+ (and v1.19+), please upgrade. It was a bug in docker-compose 2.2.0+ - please see https://github.com/drud/ddev/issues/3404 for context.
QUESTION
Instead of using ddev share, I want to run ddev applications on a virtual server (Hetzner, Ubuntu installed, pre-installed docker ce).
As docker already reserved port 80: Is there a way to forward a specific ddev port to the same port listening to docker?
...ANSWER
Answered 2022-Feb-16 at 17:37Docker itself does not use ports 80 or 443, so you have something else running there (the most common offender is going to be apache). The docs at https://ddev.readthedocs.io/en/latest/users/troubleshooting/#webserver-ports-are-already-occupied-by-another-webserver explain how to debug this. Since it says docker-proxy is running there, it probably means that you have a docker container already running and bound to port 80.
Try these things:
ddev poweroff
(to make sure all ddev things are stopped)docker ps -a
will show you other containers that may be runningdocker rm -f $(docker ps -aq)
will stop all running containers.
I think when you do these things you'll find docker not listening any more; now you just have to find out why it was listening.
As you already know, the docs for various kinds of sharing are at https://ddev.readthedocs.io/en/latest/users/topics/sharing/ and you may also be interested in the general on-server approaches in https://ddev.readthedocs.io/en/latest/users/alternate-uses/#casual-project-webhosting-on-the-internet-including-lets-encrypt
QUESTION
Using Laravel with DDEV/Docker on a Mac, I am stuck getting PhpStorm to run directly PHPUnit with coverage. I am following these instructions: https://ddev.readthedocs.io/en/stable/users/topics/phpstorm/
I started the setup with
...ANSWER
Answered 2021-Dec-29 at 10:26With composer version 2.2 the phpunit executable in vendor/bin is not a symlink anymore. It‘s a PHP file which includes the original executable with help of stream-wrapper, but including phpunit is not allowed: https://github.com/sebastianbergmann/phpunit/issues/4096#issuecomment-585900398
The bug is solved in composer: https://github.com/composer/composer/issues/10387#issuecomment-1000246631
Use the following to get the latest dev version until this fix was official released:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ddev
Check System Requirements: We support recent versions of macOS, Windows 10, and Linux distributions that will run Docker (ddev requires Docker and docker-compose). (more info here).
Install ddev: Options include macOS homebrew (recommended), an install script, or manual installation.
Read the Basics and Choose a CMS Quick Start Guide: DDEV-Local Basics PHP (Generic Project) Quickstart WordPress Quickstart Drupal 6 and 7 Quickstart Drupal 8 Quickstart Drupal 9 Quickstart Backdrop Quickstart TYPO3 Quickstart Magento 1 Quickstart Magento 2 Quickstart Laravel Quickstart Shopware 6 Quickstart
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page