Please note that I have only used docker a few times in the past and have always failed so that could be a contributing factor.
My goal for the moment is just to have the instance on localhost so I can play around with it before deciding if running my own instance is something I have the time for.
Here are the steps I have taken so far and the result:
created nginx.conf (in root of lemmy folder) with config info on the above-linked page
edited lemmy.hjson and changed admin username, admin pswd, site name, hostname (to "localhost," also tried "127.0.0.1"), set postgres pswd to db pswd I put into docker-compose.yml
then i run docker-compose up -d and get the following message:
`WARNING: The Qa variable is not set. Defaulting to a blank string.
WARNING: The k variable is not set. Defaulting to a blank string.
ERROR: Couldn't connect to Docker daemon at http+docker://localhost - is it running?
If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.
`
I imagine I'm doing a lot of things wrong. I would be extremely appreciative for any help anybody can provide.
You may need to run sudo docker container ls in order to find the actual container name for the two, as the default docker-compose doesn't specify their names, so they'll get randomly generated.
(I'm assuming the error you're seeing from docker compose up -d is from lemmy-ui, and something else is failing or preventing the backend from starting, but that's just a guess)
It looks like no containers have even been created:
[redacted]@[redacted]:~/Downloads/lemmy $ sudo docker logs lemmy
Error: No such container: lemmy
[redacted]@[redacted]:~/Downloads/lemmy $ sudo docker container ls
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
[redacted]@[redacted]:~/Downloads/lemmy $
I guess it didn't get far enough in the process to make them?
Hmm. Well I literally just setup a Pi running a Lemmy instance last week. I can walk you through the steps that I took...
Ubuntu Server using https://www.raspberrypi.com/software/. Raspbian should also work with these steps, but I just happened to use Ubuntu Server. So feel free to skip this step.
Install Docker via these instructions: https://docs.docker.com/engine/install/ubuntu/. If you used these steps to install Docker prior, feel free to skip, but if you just did apt-get install... you may need to revisit that page.
created a lemmy folder somewhere on my machine. For the sake of argument, I'm going to assume /docker/lemmy for now.
Copy the docker-compose.yml file as described in the documentation as well as the lemmy.hjson. I placed the docker-compose in /docker and the lemmy.hjson in /docker/lemmy.
Edit the docker-compose.yml so that you use the latest pre-build images instead of building from source. To do that you'll want to remove the lines that look like this:
Now you should be able to edit the lemmy.hjson / docker-compose and the nginx.conf files to match your environment (i.e. set the passwords, site-name, etc...).
P.S. I did lookup the error you got and it seems to be related to Nginx. So if above steps don't work, you may need to paste your nginx.conf file.
Also on the second part I didn't realize I had to use sudo (yeah as I mentioned I am terrible with docker). Fixing the db pswd and using sudo has made it all start! Thank you again!