Comment on Installing Lemmy & PieFed using Docker on a Raspberry Pi 5 using Cloudflare Tunnel
tofuwabohu@slrpnk.net 2 days ago
Cool guide, I’ll keep it in mind when setting up my own Lemmy, even though I won’t go through cloudflare. Some things I noticed:
- Since I didn’t see you mentioning it, ufw (idk about gufw) doesn’t actually block the ports opened by docker. Make sure to only forward your docker ports to localhost and only make the actual webservice available (e.g. 127.0.0.1:8888:8080 for piefed adminer), otherwise the ports will be accessible from your LAN
- In your update process, you can
docker compose pull
beforedocker compose down
, makes a little difference especially on a slow connection/big images. I think you don’t even need thedown
command since docker does that automatically if something changes (e.g. new build)
confusedpuppy@lemmy.dbzer0.com 2 days ago
When it finally came to the firewall, after realizing I was working with docker containers and my brain said “no more rabbit holes, friend.” Thanks for the information.
Also gufw is just a simple graphical user window that that’s built on top of ufw. I was using VNC when I began learning all this and planned on using gfuw. By the time I finished the guide, I had become comfortable handling everything from the terminal alone. It’s was just kinda there in the guide at that point.
That’s good to know about docker. I ran into issues modifying docker-compose.yml files while a container was up so I just made it a habit to shut containers down before making changes. I can see using
pull
while a container is up being more important for places concerned about unnecessary downtime though.