Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permanent Install and Certbot Instructions? #35

Open
EuphoricPenguin opened this issue Jul 16, 2023 · 6 comments
Open

Permanent Install and Certbot Instructions? #35

EuphoricPenguin opened this issue Jul 16, 2023 · 6 comments

Comments

@EuphoricPenguin
Copy link

Hey,
For people like myself, who are admittedly behind the curve on proper Certbot installs with Let's Encrypt and permanently installing a docker container like this, do you think you could add more detailed instructions? I got the one-off command working, but I would like to be able to exit the container and leave it running (like the rest of the Docker containers for a normal Lemmy instance). And, of course, setting up proper TLS certs and renewal is something that is totally lost on me; would it be possible to add instructions on how to do that as well? This looks super promising, but I'm still left scratching my head a bit.

- EuphoricPenguin22

@elmicha
Copy link

elmicha commented Jul 23, 2023

To run it permanently (whenever your docker daemon is started), you can use:

docker run -d --name mlmym --restart unless-stopped -e LEMMY_DOMAIN="lemmydomain.com" -p "8080:8080" ghcr.io/rystaf/mlmym:latest

@EuphoricPenguin
Copy link
Author

To run it permanently (whenever your docker daemon is started), you can use:

docker run -d --name mlmym --restart unless-stopped -e LEMMY_DOMAIN="lemmydomain.com" -p "8080:8080" ghcr.io/rystaf/mlmym:latest

That's nice to know, but do you know how I would set up Certbot for it as a subdomain of a current domain I have? Like, a sub.main.tld domain? I believe an A record could point to the IPv4:port, but I'm clueless as to how I can set up TLS with Certbot/Let's Encrypt.

@elmicha
Copy link

elmicha commented Jul 23, 2023

DNS translates hostnames to IP addresses, but not ports. You probably want a reverse proxy like traefik or nginx, and you can find tutorials for them easily.

@EuphoricPenguin
Copy link
Author

DNS translates hostnames to IP addresses, but not ports. You probably want a reverse proxy like traefik or nginx, and you can find tutorials for them easily.

The Ansible install already sets Nginx up for the regular Lemmy install. Does that mean that there is no way to map Mlmym to a subdomain?

@elmicha
Copy link

elmicha commented Jul 23, 2023

You can use the same nginx as a reverse proxy for mlmym. nginx also can serve different things for different (sub) domains. That's not special for mlmym, so you can find tutorials easily.

@EuphoricPenguin
Copy link
Author

You can use the same nginx as a reverse proxy for mlmym. nginx also can serve different things for different (sub) domains. That's not special for mlmym, so you can find tutorials easily.

To be honest, I'm not really sure where to start. I've never really done much with Nginx past some really basic config changes. Is this something that you configure inside or outside of the Docker container? Any search terms I should find? I'm also still unsure on what I should search for to figure out the Certbot side of things. If anything, that's the part I know the least amount about.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants