-
Couldn't load subscription status.
- Fork 3.3k
Podman Quadlet Documentation #4598
-
I've created a really basic Podman Quadlet config for running this:
/etc/containers/systemd/nginx-proxy-manager.container
[Unit]
Description=Nginx Proxy Manager
Documentation=https://nginxproxymanager.com/setup
After=local-fs.target
Requires=podman.socket
[Container]
ContainerName=nginx-proxy-manager
Image=docker.io/jc21/nginx-proxy-manager:latest
PublishPort=80:80
PublishPort=443:443
PublishPort=81:81
Volume=/var/podman/nginx-proxy-manager/data:/data:Z
Volume=/var/podman/nginx-proxy-manager/letsencrypt:/etc/letsencrypt:Z
[Install]
WantedBy=multi-user.target default.target
Any interest in adding something like this to the setup docs?
https://nginxproxymanager.com/setup
Might be helpful for folks since I found basically no information on this when trying to search online.
Beta Was this translation helpful? Give feedback.
All reactions
-
❤️ 1
Replies: 2 comments 3 replies
-
Thank you, that was very helpful. I was looking all around the internet.
I do that, but with a rootless user.
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
-
I've been looking for a week for a tut or example for podman! Can you share your config and maybe explain it a bit? I'm a noob when it comes to networking stuff and getting it all to work together, lol.
I'm trying to setup my server to be as FOSS as possible, and the documentation on things can be sparce.
EDIT: To run it rootless you just put the file in ~/.config/containers/systemd/ right?
Beta Was this translation helpful? Give feedback.
All reactions
-
Yes @jeffiscow2 for rootless, file should be in ~/.config/containers/systemd
Here are the steps:
- Create two a folder for the container and inside that folder two sub-folders
mkdir -p ~/containers/nginxProxyManager/data
mkdir -p ~/containers/nginxProxyManager/letsencrypt
- Create the container file:
nano $HOME/.config/containers/systemd/nginxpm.container
And paste the coming code two it:
[Unit]
Description=Nginx Proxy Manager
Documentation=https://nginxproxymanager.com/setup
After=podman-user-wait-network-online.service
Requires=podman.socket
[Container]
Image=docker.io/jc21/nginx-proxy-manager:latest
AutoUpdate=registry
ContainerName=nginxpm
PublishPort=8080:80
PublishPort=8443:443
PublishPort=8181:81
Volume=%h/containers/nginxProxyManager/data:/data:Z
Volume=%h/containers/nginxProxyManager/letsencrypt:/etc/letsencrypt:Z
[Service]
Restart=Always
[Install]
WantedBy=default.target
- Then start and run the container:
systemctl --user daemon-reload
systemctl --user start nginxpm
systemctl --user status nginxpm
podman ps
To access to Nginx Proxy Manager UI, go to IP/localhost:8181 in the browser
Beta Was this translation helpful? Give feedback.
All reactions
-
❤️ 1
-
Thank you! I love the idea of quadlets, but it's been a struggle writing the config files for everything I want toself-host and get it all working. This is a great help.
Beta Was this translation helpful? Give feedback.
All reactions
-
There is a good tool to convert docker comman, compose to quadlet: podlet
Beta Was this translation helpful? Give feedback.