Hi
I have two docker compose files used for two different applications.
Theese two apps are deveoped seperatly but I need to connect them locally when we develop because of some API calls from app2 to app1. I had a central server running app1 so all developers can do the calls to that. But I want to be able to set up a local version.
docker-compose-app1.yml
version: '2'
services:
app1:
image: docker/lamp
restart: allways
ports:
- "8080:80"
docker-compose-app2.yml
version: '2'
services:
app2:
image: docker/lamp
restart: allways
ports:
- "8070:80"
Both apps have it’s own docker stack with a lot of redis, DB web php etc… The abow example is for illustrating what I want to do.
App 1 uses name based vhosts app1.domain.com:8070 . All links are prefixed with urls (it is a magento store) so I need to call the app with :8070 for it to work both from my laptop and from within app1
How can I from inside the app2 container do api calls to the app1.domain.com via port 8080 ?