News and Discussions about Reddit
Welcome to !reddit. This is a community for all news and discussions about Reddit.
The rules for posting and commenting, besides the rules defined here for lemmy.world, are as follows:
Rules
Rule 1- No brigading.
**You may not encourage brigading any communities or subreddits in any way. **
YSKs are about self-improvement on how to do things.
Rule 2- No illegal or NSFW or gore content.
**No illegal or NSFW or gore content. **
Rule 3- Do not seek mental, medical and professional help here.
Do not seek mental, medical and professional help here. Breaking this rule will not get you or your post removed, but it will put you at risk, and possibly in danger.
Rule 4- No self promotion or upvote-farming of any kind.
That's it.
Rule 5- No baiting or sealioning or promoting an agenda.
Posts and comments which, instead of being of an innocuous nature, are specifically intended (based on reports and in the opinion of our crack moderation team) to bait users into ideological wars on charged political topics will be removed and the authors warned - or banned - depending on severity.
Rule 6- Regarding META posts.
Provided it is about the community itself, you may post non-Reddit posts using the [META] tag on your post title.
Rule 7- You can't harass or disturb other members.
If you vocally harass or discriminate against any individual member, you will be removed.
Likewise, if you are a member, sympathiser or a resemblant of a movement that is known to largely hate, mock, discriminate against, and/or want to take lives of a group of people, and you were provably vocal about your hate, then you will be banned on sight.
Rule 8- All comments should try to stay relevant to their parent content.
Rule 9- Reposts from other platforms are not allowed.
Let everyone have their own content.
:::spoiler Rule 10- Majority of bots aren't allowed to participate here.
view the rest of the comments
docker pull libreddit/libreddit
docker run -d --name libreddit -p 80:8080 libreddit/libreddit
Notice the port mapping. If you ran this command, youre binding port 80 to the docker container's port 8080. You can set it to whatever you like.
As for the .toml, I didnt even bother. That just sets the instance defaults, but you can change those on a per-user basis from within LibReddit.
That's the command I used.
sudo docker run -d --name libreddit -p 80:8080 libreddit/libreddit
Then I checked the port traffic with sudo lsof -i -P | grep -i "listen" and saw it running on port 80. And I could only connect to it from my browser on port 80. But it doesn't matter, I switched to teddit in Docker and have it running with a compose file, so I'm set.
Yes that command is binding port 80 to 8080. If you wanted it to run on port 8080 you'd run this command instead:
sudo docker run -d --name libreddit -p 8080:8080 libreddit/libreddit
The first port number is your local network, the second is the internal docker network.
And yes, using a compose file is what I would recommend.
Oops. I don't fully understand Docker and I misread the instructions for selecting the port.
On a related topic, is there any reason why I had to use "sudo" to run these Docker commands? I tried both without sudo and they both failed.
You need to create a docker usergroup and add yourself to it.
Instructions: https://docs.docker.com/engine/install/linux-postinstall/
Docker can be confusing at first, don't sweat it. If you want a simpler UI to configure containers with, I recommend www.portainer.io or www.yacht.sh.
Yes, I actually used Portainer on my VPS when I was learning Docker last year. It makes some things easier, but it does add another layer of complexity, learning to navigate the Portainer interface and setting up Stacks to deploy your compose files. With my home server I was trying to experiment with "the natural Docker" procedure.
I do the same. I have Yacht setup mostly so I can update and monitor things at a glance.
I see that Yacht is alpha. Any problems with stability?