Thanks, I eventually did figure it out. I had to set up a unique port for each
app. We use nginx, Docker containers, and Ansible to automate builds.
Docker:
published_ports:
- "8522:8000"
published_ports:
- "8523:8000"
nginx:
upstream backend_deformdemo {
server 127.0.0.1:8522 weight=1 max_fails=5 fail_timeout=30s;
}
upstream backend_deformdemo3 {
server 127.0.0.1:8523 weight=1 max_fails=5 fail_timeout=30s;
}
and success!
https://deformdemo.pylonsproject.org/
https://deformdemo3.pylonsproject.org/
--steve
On 1/31/21 11:59 PM, Thijs wrote:
> I have done this a few times, have you figured this out already or do you
> need a hand?
> In my experience the best way to handle this is with docker-compose. You can
> configure multiple containers each with a different (internal) hostname. And
> then add a reverse proxy (I use nginx, but I have heard some great things
> about Traefik) to map the internal hostnames to external paths/ports.
> Thijs
>
> On Thu, Jan 28, 2021 at 2:25 PM Steve Piercy <[email protected]
> <mailto:[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]
> <mailto:pylons-discuss%[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
>
> <https://groups.google.com/d/msgid/pylons-discuss/f51239cb-40c3-4f3d-d52a-7f82b7bce681%40gmail.com>.
>
> --
> 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]
> <mailto:[email protected]>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pylons-discuss/CAHnCEofdYYBTpfqa_qJ3ibpJq0z94O1MZkRYSZFaCM1%3D_n4RRA%40mail.gmail.com
>
> <https://groups.google.com/d/msgid/pylons-discuss/CAHnCEofdYYBTpfqa_qJ3ibpJq0z94O1MZkRYSZFaCM1%3D_n4RRA%40mail.gmail.com?utm_medium=email&utm_source=footer>.
--
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/659a1efa-3be6-b78f-f0bd-0c2103f25cca%40gmail.com.