selfhosted-apps-docker icon indicating copy to clipboard operation
selfhosted-apps-docker copied to clipboard

[Feature Request] Cockpit example

Open arvigeus opened this issue 3 years ago • 0 comments

So far I figured out it needs extra-hosts in docker-compose :

extra_hosts:
  - "host.docker.internal:host-gateway"

The following config in caddy:

cocpit.example.com {
    reverse_proxy host.docker.internal:9090
}

/etc/cockpit/cockpit.conf:

[WebService]
Origins = https://example.com wss://example.com
AllowUnencrypted = true
ProtocolHeader = X-Forwarded-Proto

As a bonus this will showcase how to expose local non-docker apps.

Maybe also mention ufw / firewall

arvigeus avatar Sep 28 '21 20:09 arvigeus