Hey, does anyone else have issues running a lemmy instance with docker compose?
I cant get it to work. I followed the guide on the wiki step by step to no avail…
Edit: This is my error message with the docker-compose config as provided by the guide:
Then I tried to remove the logging bits, I get this error:
Then I started over and pulled the github repository and edited the files in the docker subfolder and I get this error:
I give up 🙂
Have you tried the Ansible playbook?
I’ve never really used Ansible before. Is it difficult? At first glance it’s little overwhelming
It’s extremely easy. Highly recommend it.
Can you send you docker-compose file?
Are you planning on modifying the lemmy backed or UI? If not I would suggest:
- Comment out the sections about building the image from scratch.
- Go to dockerhub and find the newest tag that matches your system’s architecture and use that instead.
If you can paste your docker-compose file we can more precisely tell you what needs to be changed.
The default config expects that your cloning the entire GitHub repo, for the backend, at least, and tries to compile it from scratch. You can instead just tell docker to use a precompiled image instead.
Lastly YAML is very picky about whitespace so something might be indented incorrectly. So again, if we can see your docker-compose file we might be able to see what’s wrong.
I used the docker-compose file from the official github repo: https://github.com/LemmyNet/lemmy/blob/main/docker/docker-compose.yml
But after the comment from @marsara9@lemmy.world I changed it to pull the image from dockerhub instead of building it myself. Now it pulls correctly and the server comes online but is almost unusable. The homepage displays but I cannot login as admin or create a new user :/
Edit: Here is the docker-compose.yml I used
I had a similar issue, use a more recent version of the lemmy-ui image. I used “latest” and it worked
Also, @hyper@lemmy.ml, what does your nginx.conf look like? Now that the webpage is loading, the backend might be blocked/not configured properly in nginx, so nginx isn’t properly forwarding requests to the backend.