I am using Google Cloud and I am trying to deploy this repository.
This is the docker-compose.prod.yml And the Dockerfile
Everything goes perfect: the build stage is finish without any error.
But the problem appears on the deploying stage: I get this error:
The user-provided container failed to start and listen on the port defined provided by the PORT=8080 environment variable. Logs for this revision might contain more information
I am new to Docker. I don't know where the port 8080 is being defined from the application.
Does anyone knows when in my docker files is this defined or how can I fix this error and deploy the application.
I have tried:
- gcloud run deploy ds-creative --source .
- gcloud run deploy ds-creative --source . --port=8080
- Creating a Cloud Run service from a GitHub repository.
- Creating a firewall rule to open port 8080
And in all of them I get the same error.
Thanks