guessi / docker-yourls

Dockerize YOURLS service (Shorten URL Service)
https://hub.docker.com/r/guessi/docker-yourls/
27 stars 16 forks source link

How to Configure HTTPS for YOURLS using Docker Compose #15

Open HoBeom opened 2 weeks ago

HoBeom commented 2 weeks ago

I am using the guessi/docker-yourls Docker image to deploy a YOURLS server and I'm looking to set up HTTPS for the server. I am currently unclear on how to adjust the Docker Compose configuration to support HTTPS.

Could you provide guidance on what changes need to be made to the Docker Compose file to enable HTTPS? Specifically, I'm looking for advice on how to integrate SSL certificates with the existing Docker setup and any required changes to the Nginx or web server configurations that might be included in the Docker image.

guessi commented 2 weeks ago

Hi @HoBeom

There are several ways to archive the same goal to serve HTTPS (at least 10 in my head), depends on how/where you run the application.

Talking about the certificate, easiest way to get one is to apply from Let's Encrypt and integrate into your reverse proxy's configuration. Maybe you can try Caddy as simple solution, try to search nginx/apache/Caddy + docker-compose you should find many blogs tutorials out there.