I have this setting in docker-compose.yml
causing it to bring up a container with port 8080 exposed.
Inside that container, I have some applications located inside the src
directory, separated as sub-modules
.
I'm using LARAVEL FRAMEWORK, I made the following configuration to get the API URL. Inside that wrapper_app
config, there is the URL php:8080/app
which is also an application.
The request is going from "ACADEMY-SAAS" to "APP", but without success.
How to make a folder inside the container
communicate with another folder inside the same container
via HTTP?
I also tried to put in the docker-compose.yml
, inside the php
service, the link with itself, but when I upload the container, the error of "recursiveness" is displayed.
CodePudding user response:
Just to check, have you tried localhost:8080 or just localhost? Since it is just communicating with itself, I think it may not need the container name