DoTheEvo / selfhosted-apps-docker

Guide by Example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature Request] Cockpit example

arvigeus opened this issue · 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