terraform-google-modules / .github

Apache License 2.0
0 stars 8 forks source link

Port binding between VM host and container not working #3

Closed rragundez closed 6 months ago

rragundez commented 6 months ago

TL;DR

We've deployed successfully using this module and app that uses port 8080. The port is exposed inside the docker file via 'EXPOSE 8080' and the app is ran via 'CMD run_app_command -p 8080'

Then we SSH into the VM but 'curl localhost:8080' does not return a response from the application. According to the documentation docker by default is binding all host ports. So I would expect this to just work.

In addition, if we stop the container running and manually run 'docker run IMAGE -p 8080:8080' the. The curl command to localhost:8080 returns the response from the containerized application.

Expected behavior

No response

Observed behavior

No response

Terraform Configuration

-

Terraform Version

-

Additional information

No response

rragundez commented 6 months ago

Seems that we found the bug from our side.