You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _docs/codefresh-yaml/service-containers.md
+52Lines changed: 52 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -480,6 +480,58 @@ Notice that in that case the sequence of events is the following
480
480
1. The`setup` block will run and preload data or setup any custom commands you have placed in the property
481
481
1. The actual pipeline step will now run with the service container attached in the same network.
482
482
483
+
##Accessing Containers via localhost
484
+
485
+
Ideally, your application should be able to access other services by other DNS names that are fully configurable (this is a very good practice for[integration tests]({{site.baseurl}}/docs/docs/testing/integration-tests/) as well).
486
+
487
+
Sometimes, however, and especially in legacy applications, your application might be hardcoded to look at other services at “localhost”
488
+
489
+
In that case, you can use the attribute`shared_host_network: true` on the services definition. Now all linked containers can access each other's services via localhost. Here is an example:
Copy file name to clipboardExpand all lines: _docs/whats-new/whats-new.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,9 @@ toc: true
15
15
16
16
###March 2021
17
17
18
+
- Accessing Containers via localhost -[documentation]({{site.baseurl}}/docs/codefresh-yaml/service-containers/)
19
+
20
+
18
21
- The[Modified Files filter]({{site.baseurl}}/docs/configure-ci-cd-pipeline/triggers/git-triggers/#monorepo-support-modified-files) will now work on triggers triggered by Pull Request events. Notice: this might cause unexpected behavior if you have a trigger that is triggered by both Pull Request and Commit events with a Modified Files filter set. Previously the Modified Files filter would be ignored for Pull Request events. If you need different filters for Pull Requests and Commit events, we recommend you separate the trigger.
19
22
- Codefresh Runner on Rancher RKE 2.X -[documentation]({{site.baseurl}}/docs/administration/codefresh-runner/#installing-on-rancher-rke-2x)