jesseduffield / jesseduffield/lazydocker
Launching LazyDocker in the Web interface
- Dominant language
- Go
- Stars
- 52.8k
- Forks
- 1.7k
- PR merge metrics
- No merged PRs in 30d
Description
**Is your feature request related to a problem? Please describe.**
No
I want to express my gratitude for your project! I have been using it for quite a long time, and was also inspired by it to create a [TUI for journals](https://github.com/Lifailon/lazyjournal) with a similar name ;)
**Describe the solution you'd like**
Most often I use LazyDocker in the web interface via [ttyd](https://github.com/tsl0922/ttyd), so I would like to suggest optimizing the container assembly with the ability to run in the Web interface or adding a second assembly option (a separate image) and reporting it in the `README`.
Here's a simple example with basic auth support that I'm using now:
```Dockerfile
FROM golang:1.21-alpine3.20 AS build
RUN apk add --no-cache git
RUN git clone https://github.com/jesseduffield/lazydocker /lazydocker
WORKDIR /lazydocker
RUN go build -o /bin/lazydocker
FROM alpine:3.20
RUN apk add --no-cache ttyd docker-cli
COPY --from=build /bin/lazydocker /bin/lazydocker
ENTRYPOINT ["sh", "-c", "ttyd -W -p ${PORT} $( [ -n \"${USERNAME}\" ] && [ -n \"${PASSWORD}\" ] && echo \"-c ${USERNAME}:${PASSWORD}\" ) lazydocker"]
```
For ease of installation, I have published it on [Docker Hub](https://hub.docker.com/r/lifailon/lazydocker-web).
**Describe alternatives you've considered**
[isaiah](https://github.com/will-moss/isaiah) - self-hostable clone of lazydocker for the web. This is a great alternative! But the controls and functionality are still slightly different.
**Additional context**

Contributor guide
Assessment
This issue has not been assessed yet.