feat(webtop): add Ubuntu XFCE web desktop

This commit is contained in:
tiennm99 committed 2026-10-05 09:54:03 +07:00
1 parent 8bd14da5ca
commit 9cc483f63b
5 files changed
+90

No files matched your search

+1
View File
@@ -87,5 +87,6 @@ Each links to its own README for variables, ports, and storage.
| [opencode](opencode/README.md) | opencode coding agent, served as a browser UI |
| [paseo](paseo/README.md) | Paseo coding-agent daemon and web UI |
| [traffmonetizer](traffmonetizer/README.md) | TraffMonetizer bandwidth-sharing client |
| [webtop](webtop/README.md) | Ubuntu XFCE desktop in the browser |
Licensed under Apache 2.0 — see [LICENSE](LICENSE).
+13
View File
@@ -0,0 +1,13 @@
# Copy to .env and fill in. Never commit .env.
#
# cp .env.example .env
# Login for the web desktop, also the abc user's sudo password.
# Generate one with: openssl rand -base64 24
CUSTOM_USER=abc
PASSWORD=
TZ=Asia/Ho_Chi_Minh
# Browser tab title.
# TITLE=Webtop
+4
View File
@@ -0,0 +1,4 @@
FROM lscr.io/linuxserver/webtop:ubuntu-xfce
# Workspace directory owned by the abc user (PUID/PGID 1000).
RUN mkdir -p /workspace && chown 1000:1000 /workspace
+53
View File
@@ -0,0 +1,53 @@
# webtop
[Webtop](https://docs.linuxserver.io/images/docker-webtop): a full Ubuntu
XFCE desktop in the browser, from the LinuxServer image, streamed by Selkies.
## Setup
1. Set `PASSWORD`.
2. Map the domain to port `3000` and deploy.
3. Open the domain and log in with `CUSTOM_USER` / `PASSWORD`.
Port `3000` serves plain HTTP and must sit behind the proxy, which adds HTTPS.
The image's own HTTPS port `3001`, with a self-signed certificate, is unused.
## Environment
| Variable | Default | Purpose |
| --- | --- | --- |
| `CUSTOM_USER` / `PASSWORD` | `abc` / — | Login for the web desktop |
| `TZ` | `Asia/Ho_Chi_Minh` | Desktop timezone |
| `TITLE` | optional | Browser tab title |
`PASSWORD` is required: without it the image serves the desktop, with a
shell and `sudo`, to anyone who opens the domain.
`PUID`/`PGID` are pinned to `1000` in `compose.yml`; the `Dockerfile` depends
on that (see Storage).
## Storage
| Volume | Mount | Holds |
| --- | --- | --- |
| `webtop-config` | `/config` | Home directory: desktop settings, browser profiles, CLI logins, apps installed with `proot-apps` |
| `webtop-workspace` | `/workspace` | Code and files you work on |
The `Dockerfile` exists only to make `/workspace` writable. The image's init
chowns `/config` to the `abc` user but not other paths, so a named volume on
`/workspace` would come up `root:root`. Creating the directory in the image,
owned by `1000:1000`, fixes that: Docker seeds an empty named volume from the
image directory, ownership included.
Software installed with `apt` lives in the container and is lost when it is
recreated. Anything that must survive goes under `/config`, through
`proot-apps` or a user-level install.
## Resources
`shm_size: 1gb` is upstream's recommendation for every desktop image; browsers
and the video encoder run out of shared memory at Docker's 64 MB default.
## Image
`ubuntu-xfce` is LinuxServer's moving tag for the Ubuntu XFCE flavour.
+19
View File
@@ -0,0 +1,19 @@
services:
webtop:
build: .
restart: unless-stopped
shm_size: 1gb
environment:
- CUSTOM_USER=${CUSTOM_USER:-abc}
- PASSWORD=${PASSWORD:?required}
- PUID=1000
- PGID=1000
- TZ=${TZ:-Asia/Ho_Chi_Minh}
# - TITLE=${TITLE:-Webtop}
volumes:
- webtop-config:/config
- webtop-workspace:/workspace
volumes:
webtop-config:
webtop-workspace: