Running akkoma/plermora in docker in WSL
Sat Nov 19 17:55:44 UTC 2022
This isn't an exhaustive how-to, just a list of some of the complications I ran into. I'm running the standard Ubuntu 20.04 WSL image from the Microsoft store, I think.
- Install the docker compose plugin. Whatever "docker-compose" is in ubuntu, it's not updatable and it doesn't work.
- I followed these instructions for installing akkoma with docker but I had to replace every docker-compose with docker compose (space instead of dash)
- I used afraid.org for free DNS and pointed it at my home IP address. You might have to do stuff with the firewall rules on your cable modem.
- I opened port 443 in Windows Defender Firewall.
- Very important: the date/time in WSL has to be correct, otherwise federation doesn't work. I had to install ntpdate and force an update.
- I changed the config so that registrations are not open. I don't need people signing up on this instance, which is running on my laptop, and which essentially shuts down when I close my laptop lid (which I do when I'm not using it).
If I remember any other work-arounds I had to do I will add them to this page.