Skip to content

Headplane + Headscale in Coolify #416

@tmocakeling

Description

@tmocakeling

Description

Did anyone try this ? I already saw the TLS issue but maybe someone has a smooth solution to this setup.

Config:

services:
headplane:
image: 'ghcr.io/tale/headplane:latest'
container_name: headplane
restart: unless-stopped
ports:
- '3000:3000'
volumes:
- '/data/headplane/config.yaml:/etc/headplane/config.yaml'
- '/data/headscale/config/config.yaml:/etc/headscale/config.yaml'
- '/data/headplane/headplane-data:/var/lib/headplane'
- '/var/run/docker.sock:/var/run/docker.sock:ro'
labels:
- traefik.enable=true
- 'traefik.http.routers.headplane.rule=Host(hs.domain.com) && PathPrefix(/admin)'
- traefik.http.routers.headplane.entrypoints=websecure
- traefik.http.routers.headplane.tls=true
- traefik.http.services.headplane.loadbalancer.server.port=3000
headscale:
image: 'headscale/headscale:latest'
container_name: headscale
restart: unless-stopped
command: serve
ports:
- '8181:8181'
volumes:
- '/data/headscale/config/config.yaml:/etc/headscale/config.yaml'
- '/data/headscale/lib:/var/lib/headscale'
labels:
- me.tale.headplane.target=headscale
- traefik.enable=true
- traefik.http.routers.headscale.entrypoints=websecure
- traefik.http.routers.headscale.rule=Host(hs.domain.com)
- traefik.http.routers.headscale.service=headscale
- traefik.http.routers.headscale.tls=true
- traefik.http.services.headscale.loadbalancer.server.port=8181

I am able to connect to headscale with Talescale i see the connection coming in but as in the TLS issue when i want to login in domain.com:3000/admin after creating the api key in the headscale container there is a time out:

[auth] ERROR: Error while validating API key: DataWithResponseInit {
type: 'DataWithResponseInit',
data: 'Timed out waiting for a response from the Headscale API',
init: [Object]
}

Headplane config:

url: "https://hs.domain.com:8181"

Headscale config:

server_url: https://hs.domain.com

Headplane Version

latest

Headscale Version

latest

Metadata

Metadata

Assignees

Labels

BugSomething isn't workingNeeds TriageIssues yet to be triaged

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions