First clone the repo, then initialize submodules and update, then go into the docker directory and run docker compose. That did the trick for me with the sample compose file
Self Hosted - Self-hosting your services.
A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.
Rules
- No harassment
- crossposts from c/Open Source & c/docker & related may be allowed, depending on context
- Video Promoting is allowed if is within the topic.
- No spamming.
- Stay friendly.
- Follow the lemmy.ml instance rules.
- Tag your post. (Read under)
Important
Beginning of January 1st 2024 this rule WILL be enforced. Posts that are not tagged will be warned and if not fixed within 24h then removed!
- Lemmy doesn't have tags yet, so mark it with [Question], [Help], [Project], [Other], [Promoting] or other you may think is appropriate.
Cross-posting
- [email protected] is allowed!
- [email protected] is allowed!
- [email protected] is allowed!
- [email protected] is allowed if topic has to do with selfhosting.
- [email protected] is allowed!
If you see a rule-breaker please DM the mods!
Here's how I setup mine https://lemmy.dcrich.net/post/1150
It's better to go ahead and install the nginx container as the config will handle all the backend stuff and all you have to do is forward port 80 in NPM
This finally worked for me! You are fantastic! What do you think about the 0.18.0 update? Any thoughts on the nginx.conf file? It seems to have broken my (finally) working install so I rolled back.
Please do add a tag to your post as stated on the sublemmy sidebar! Thank you. :)
<<so I don’t want to install the nginx container in the sample compose either>> Thought the same initially but it turned out both nginx instances are required. I have a working setup with an installed nginx instance + certbot and an almost unmodified docker-compose.yml The modifications I made were changing container names (so they fit my standard) and the http port
The lemmy documentation https://join-lemmy.org/docs/administration/install_docker.html recommends the following location block for the installed nginx:
location / {
proxy_pass http://localhost:LEMMY_PORT;
proxy_set_header Host $host;
include proxy_params;
}
This did not work for me! I had to comment the proxy_set_header line to make things work. With it I run into an error 400.