Skip to content

Communication between warden environments #778

Answered by cjnewbs
cjnewbs asked this question in Help & Support
Discussion options

You must be logged in to vote

I figured it out. Warden already adds a hosts entry that routes to traefik to the php container (the one connected to with warden shell) so it was as simple as adding this into the .warden/warden-env.yml file of the project you wish to make HTTP requests from:

version: "3.5"
services:
  php-fpm:
    extra_hosts:
      - app.magento.test:${TRAEFIK_ADDRESS:-0.0.0.0}
  php-debug:
    extra_hosts:
      - app.magento.test:${TRAEFIK_ADDRESS:-0.0.0.0}

Just change app.magento.test to the project you wish to connect to.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cjnewbs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant