diff --git a/haproxy.md b/haproxy.md index 183f6ed..fe0bd59 100644 --- a/haproxy.md +++ b/haproxy.md @@ -6,6 +6,10 @@ podman run -d --name haproxy -v /home/support/haproxy:/usr/local/etc/haproxy:ro ``` **NOTE:** Your host's /home/support/haproxy directory should be populated with a file named haproxy.cfg +### --net=host +Allow the container to have direct access to the host's network. +Instead of specifying any any port mappings, set --net=host on the run command. + ### Attach to container ``` podman exec -it haproxy bash diff --git a/nginx.md b/nginx.md index 5e55fe9..1b8bf68 100644 --- a/nginx.md +++ b/nginx.md @@ -5,6 +5,10 @@ podman pull nginx:latest podman run --name nginx -p 80:80 -p 443:443 -v /home/support/nginx:/config -e PUID=1000 -e PGID=1000 -e TZ=Europe/London -d lscr.io/linuxserver/nginx:latest ``` +### --net=host +Allow the container to have direct access to the host's network. +Instead of specifying any any port mappings, set --net=host on the run command. + ### Attach to container ``` podman exec -it nginx bash