Skip to content

Commit c3f360e

Browse files
[docs] Adjusted the FAQ 'communication between projects faq' (ddev#4757) [skip ci]
1 parent ea0d04f commit c3f360e

File tree

1 file changed

+7
-5
lines changed
  • docs/content/users/usage

1 file changed

+7
-5
lines changed

docs/content/users/usage/faq.md

+7-5
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,17 @@ You can use [`ddev mysql`](../usage/commands.md#mysql) or `ddev psql` to execute
6464

6565
Yes, this is commonly required for situations like Drupal migrations. For the `web` container to access the `db` container of another project, use `ddev-<projectname>-db` as the hostname of the other project.
6666

67-
Let’s say we have two projects, for example: project A, and project B. In project A, use `mysql -h ddev-projectb-db` to access the database server of project B. For HTTP/S communication you can 1) access the web container of project B directly with the hostname `ddev-<projectb>-web` and port 80 or 443: `curl https://ddev-projectb-web` or 2) Add a `.ddev/docker-compose.communicate.yaml` for accessing the other project via the official FQDN.
67+
Let’s say we have two projects, for example: project A, and project B. In project A, use `mysql -h ddev-projectb-db` to access the database server of project B. For HTTP/S communication (i.e. API calls) you can 1) access the web container of project B directly with the hostname `ddev-<projectb>-web` and port 80 or 443: `curl https://ddev-projectb-web` or 2) Add a `.ddev/docker-compose.communicate.yaml` to project A to access project B via the official FQDN.
6868

6969
```yaml
70-
services:
71-
web:
72-
external_links:
73-
- "ddev-router:projectb.ddev.site"
70+
services:
71+
web:
72+
external_links:
73+
- "ddev-router:projectb.ddev.site"
7474
```
7575
76+
This lets the `ddev-router` know that project A can access the web container on project B's DDEV URL. If you are using other hostnames or `project_tld`, you will need to adjust the `projectb.ddev.site` value.
77+
7678
### Can I run DDEV with other development environments at the same time?
7779

7880
Yes, as long as they’re configured with different ports. It doesn’t matter whether your other environments use Docker or not, it should only be a matter of avoiding port conflicts.

0 commit comments

Comments
 (0)