You could have the main process be Supervisord and have it launch two
instances of the Pyramid application, each with a different config
file. I just reviewed a Docker-Django setup, and it had several stages
in the Dockerfile. All of them launched Supervisord and copied all the
job files to the container, but each stage specified in an environment
variable which job files Supervisord should "include" in that
container.

I also have a Pyramid application that's run as two instances with
different config files (main and mobile). I have each one in a
different container using the same image, and a bind-mount directory
that has the config files and launch scripts, so each one specifies a
different launch script or config file on the command line.

I haven't done exactly what you're doing but it sounds like they could
run on different ports in the same container. I have to have them
running on different ports even in different containers. Apache is
running on the host, and the reverse proxies use the ports to access
the containers.

On Thu, Jan 28, 2021 at 5:25 AM Steve Piercy <[email protected]> wrote:
>
> Howdy,
>
> I want to run two versions of Deform Demo on a single VM in Docker 
> containers.  I've been able to successfully build the Docker containers for 
> each version, but I do not know how to configure each Pyramid app (two 
> versions of Deform Demo in this case) to run with nginx as the upstream proxy 
> server.  Has anyone done something similar, and if so, what must I configure 
> to serve both apps?
>
> I know it has something to do with port configuration (Deform v2 serves just 
> fine, but v3 continuously restarts and nginx cannot find it), but I lack the 
> knowledge and DuckDuckFu to figure out the details on my own.
>
> --steve
>
> --
> You received this message because you are subscribed to the Google Groups 
> "pylons-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/pylons-discuss/f51239cb-40c3-4f3d-d52a-7f82b7bce681%40gmail.com.



-- 
Mike Orr <[email protected]>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/CAH9f%3DuqUm1khfRKK_3ro6q5MMfSvQeqbebEyXzxx9_BTOHPExg%40mail.gmail.com.

Reply via email to