1
0
Fork
You've already forked reverse-proxy
0
No description
Just 100%
2025年07月11日 08:41:22 +02:00
conf Initial working version 2025年07月11日 08:41:22 +02:00
.gitignore Initial working version 2025年07月11日 08:41:22 +02:00
Justfile Initial working version 2025年07月11日 08:41:22 +02:00
README.md Initial working version 2025年07月11日 08:41:22 +02:00
reverse-proxy.container Initial working version 2025年07月11日 08:41:22 +02:00
reverse-proxy.network Initial working version 2025年07月11日 08:41:22 +02:00
reverse-proxy.pod Initial working version 2025年07月11日 08:41:22 +02:00
svc1-1.container Initial working version 2025年07月11日 08:41:22 +02:00
svc1-2.container Initial working version 2025年07月11日 08:41:22 +02:00
svc1.network Initial working version 2025年07月11日 08:41:22 +02:00
svc1.pod Initial working version 2025年07月11日 08:41:22 +02:00
svc2-1.container Initial working version 2025年07月11日 08:41:22 +02:00
svc2-2.container Initial working version 2025年07月11日 08:41:22 +02:00
svc2.network Initial working version 2025年07月11日 08:41:22 +02:00
svc2.pod Initial working version 2025年07月11日 08:41:22 +02:00

What is this?

A proof-of-concept for running a reverse proxy (in this case, HAProxy) in a rootful Podman container, using systemd units generated via Podman.

The HAProxy image used is this one.

Requirements

  • Podman
  • Just
  • A containers user with enough subuids and subgids for UserNS=auto (see the beginning of man podman-run)

TODO

Notes

  • All networks that are supposed to be isolated from each other need to have Option=isolate=true
  • All services may still access each other via the reverse proxy, just like outside services can

Adding a new service requires the following steps:

  1. Create the new network unit, pod unit, and required containers
  2. Add the reverse proxy pod to the new network (by changing the config and restarting it, or by connecting it manually via podman network connect) so it can access the new service and proxy it
  3. Adjust the reverse proxy config (by adding and manually reloading, or just restarting the reverse proxy systemd unit)