Skip to content

Allow listening on port 8080 so PHPPM can be used in Google App Engine #13

Open
@brianV

Description

@brianV

I'm working on building a project to be hosted in Google App Engine with a custom runtime (ie., docker container) based on phppm/docker. However, GAE requires that custom runtimes listen on port 8080:

From the GAE documentation:

Listen to port 8080
The App Engine front end will route incoming requests to the appropriate module on port 8080. You must be sure that your application code is listening on 8080.

It would be nice if the ultimate end port the docker images listened on was configurable from the Dockerfile in our custom container. Perhaps something like this:

FROM phppm/nginx
ENV PPM_LISTEN_ON 8080
COPY web/ /var/www

and then have the PHPPM docker container we are extending automatically configure itself to listen on that port we've set.

Activity

marcj

marcj commented on Aug 3, 2018

@marcj
Member

Why can't you just proxy 8080 to 80? it's actually pretty common to let the service run on the port in the docker container they naturally have. I'd not like to attach that now to one service in the wild, namely GAE.

brianV

brianV commented on Aug 3, 2018

@brianV
Author

Hi Marc,

Maybe I am misunderstanding your question, but I am not sure how you would proxy the ports.

GAE builds the image based on the Dockerfile and deploys it internally. They then route all requests to port 8080 of deployed container, as per the documentation linked / quoted in the OP. So, in order to work at all on GAE, the Dockerfile needs to be configured in such a way that the resulting image will listen on 8080.

marcj

marcj commented on Aug 3, 2018

@marcj
Member

I see, I thought there must be a way to configure this in GAE, however, then we should make it configurable in someway, but I'd not make it the default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @brianV@marcj

        Issue actions

          Allow listening on port 8080 so PHPPM can be used in Google App Engine · Issue #13 · php-pm/php-pm-docker