Skip to content

sko9370/guacamole-caddy-reverse-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Apache Guacamole with Caddy HTTPS Reverse Proxy

Purpose

  • Automatic TLS certificate management
  • Lightweight, as less setup as possible
  • All containers deployed from a single docker-compose.yml

Procedure

  1. Create your own free domain with duckdns
  2. Prepare the database container following the steps in reference #1
  3. Create docker image caddy:duckdns using the Dockerfile
  4. Edit Caddyfile and docker-compose.yml with your subdomain, duckdns API key, and database password (they should all be the same)
  5. Deploy stack using docker-compose.yml
  6. (Optional) Port forward to port 443 on the host running the caddy container

Recommendations

  • use a separate Portainer Docker container to manage containers
  • use specific versions in the Dockerfile as recommended by Caddy dockerhub page
  • use a very long password since this will be exposed to the public internet
  • implement fail2ban https://github.com/fail2ban/fail2ban

Aha's

  • you can't use localhost:8080 because the caddy container will look at itself instead of the guacamole container
  • you can reference a container by its name from a different container (i.e. http://guacamole:8080)
  • you can't access Guacamole from the local network using the domain, just use the raw IP

References

  1. https://www.systems.dance/2021/01/apache-guacamole-and-docker-compose/
  2. https://registry.hub.docker.com/_/caddy

About

Using docker compose to quickly deploy guacamole with a reverse proxy using Caddy

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published