phpcli | Helper class for PHP CLI apps | Build Tool library
kandi X-RAY | phpcli Summary
kandi X-RAY | phpcli Summary
.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Parse raw parameters .
- Process given options .
- Prompt a user to choose a user from a list of options .
- Convert a value to a boolean
- Converts a value to a type .
- Determine if the command is colored .
- Process option name
- Validate a value against a set of rules
- Get parameters from command line
- Adds an option alias .
phpcli Key Features
phpcli Examples and Code Snippets
Community Discussions
Trending Discussions on phpcli
QUESTION
I am working in a local environment with docker. I have an nginx web container and a php container which are in the same network.
I build the php container from my own dockerfile (with phpfpm and phpcli); and, the nginx I compose it in a docker-compose from the nginx:stable
hub image.
I have 2 projects: a symfony(http://i-r4y.kaiza.lh/
) and a drupal(http://i-z4r4.kaiza.lh/
) which runs in it. and the symfony exposes an api which have to be consumed by the drupal. The problem is that an error when I call the symfony from the drupal cURL error 7: Failed to connect to i-r4y.kaiza.lh port 80: Connection refused
I thought it was a configuration of the symfony side api route; like it must be public or accept CORS etc ...
but when I enter on bash in the php container, and I do curl either the symfony or drupal url, I have the same error.
...ANSWER
Answered 2021-Apr-13 at 17:28You need to expose port 80 to your docker host.
It looks like you are trying to curl from your docker host (your real machine running docker) to nginx running in a docker container.
You can do that in docker-compose with the following:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install phpcli
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page