I am new to podman, so please forgive me that I might be asking about the basics.
Today, I decided to migrate forgejo into a container, to harden my “server”. For this, I backed up forgejo using forgejo dump
, which gave me a ZIP file. Now I am lost on putting it into the podman container…
Basically, I want to know:
- How do I access files inside podman container, especially one created through quadlet? Does the quadlet part make a difference?
- How can I restore forgejo backup created by
forgejo dump
? Despite this being seemingly common task, there seems to be no documentation about how to restore the backup.
I have been struggling a lot with setting it up. Until moments ago, I had great difficulty debugging networking issue from firewall, which was quite exhausting. So I would like to ask help first for this problem. If anyone could give some pointers or help, it would be greatly appreciated!
Havent used forgejo, but -
Is the zip file a dump of the filesystem / data / config the application needs?
You could want to extract that somewhere, and mount the directory into the container.
https://docs.podman.io/en/latest/markdown/podman-volume-mount.1.html
so for example you extract to
/home/forgejo
you would map this to a container in podmanStack to help? https://stackoverflow.com/questions/69298356/how-to-mount-a-volume-from-a-local-machine-on-podman/71576242#71576242