esphome / esphome/feature-requests

Auto launch dashboard on docker container

Open
#2,984 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
450
Forks
29
PR merge metrics
No merged PRs in 30d

Description

**Describe the problem you have/What new integration you would like**

I would like to have dashboard autostarted.
Something like:

esphome dashboard /config --port $PORT --username $USERNAME --password $PASSWORD

On top of adding the command to `/entrypoint.sh`, also a new environment variable should be added `PORT` with a default.

**Please describe your use case for this integration and alternatives you've tried:**

Creating a launch.sh on /config fix the issue, but autolaunch at each restart/update would be handy.

**Additional context**

USERNAME and PASSWORD variables are already part of the container, thus suggesting the route is tracked.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing /entrypoint.sh and the existing Docker container environment, including the USERNAME and PASSWORD variables mentioned in the issue. Confirm how the dashboard command should be started and what default PORT is expected; done means the dashboard autostarts after container launch and restart without requiring a /config/launch.sh script.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, shell
Domain
cli, devops
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.