-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
118 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: Docker Build | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Build the Docker image | ||
run: docker build . --file Dockerfile --tag xpipe-webtop:$(date +%s) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,98 @@ | ||
# XPipe Webtop | ||
|
||
This docker image is a fork of https://github.com/linuxserver/docker-webtop that comes with XPipe and various terminals and editors preinstalled. | ||
This docker image is a fork of https://github.com/linuxserver/docker-webtop that comes with XPipe and various terminals and editors preinstalled. | ||
|
||
## Application Setup | ||
|
||
The Webtop can be accessed at: | ||
|
||
* https://yourhost:3001/ | ||
|
||
### Options in all KasmVNC based GUI containers | ||
|
||
This container is based on [Docker Baseimage KasmVNC](https://github.com/linuxserver/docker-baseimage-kasmvnc) which means there are additional environment variables and run configurations to enable or disable specific functionality. | ||
|
||
#### Optional environment variables | ||
|
||
| Variable | Description | | ||
| :----: | --- | | ||
| CUSTOM_USER | HTTP Basic auth username, abc is default. | | ||
| PASSWORD | HTTP Basic auth password, abc is default. If unset there will be no auth | | ||
| SUBFOLDER | Subfolder for the application if running a subfolder reverse proxy, need both slashes IE `/subfolder/` | | ||
|
||
## Usage | ||
|
||
To help you get started creating a container from this image you can either use docker-compose or the docker cli. | ||
|
||
### docker-compose (recommended, [click here for more info](https://docs.linuxserver.io/general/docker-compose)) | ||
|
||
```yaml | ||
--- | ||
services: | ||
webtop: | ||
image: lscr.io/linuxserver/webtop:latest | ||
container_name: webtop | ||
security_opt: | ||
- seccomp:unconfined #optional | ||
environment: | ||
- PUID=1000 | ||
- PGID=1000 | ||
- TZ=Etc/UTC | ||
- SUBFOLDER=/ #optional | ||
- TITLE=Webtop #optional | ||
volumes: | ||
- /path/to/data:/config | ||
- /var/run/docker.sock:/var/run/docker.sock #optional | ||
ports: | ||
- 3000:3000 | ||
- 3001:3001 | ||
devices: | ||
- /dev/dri:/dev/dri #optional | ||
shm_size: "1gb" #optional | ||
restart: unless-stopped | ||
``` | ||
### docker cli ([click here for more info](https://docs.docker.com/engine/reference/commandline/cli/)) | ||
```bash | ||
docker run -d \ | ||
--name=webtop \ | ||
--security-opt seccomp=unconfined `#optional` \ | ||
-e PUID=1000 \ | ||
-e PGID=1000 \ | ||
-e TZ=Etc/UTC \ | ||
-e SUBFOLDER=/ `#optional` \ | ||
-e TITLE=Webtop `#optional` \ | ||
-p 3000:3000 \ | ||
-p 3001:3001 \ | ||
-v /path/to/data:/config \ | ||
-v /var/run/docker.sock:/var/run/docker.sock `#optional` \ | ||
--device /dev/dri:/dev/dri `#optional` \ | ||
--shm-size="1gb" `#optional` \ | ||
--restart unless-stopped \ | ||
lscr.io/linuxserver/webtop:latest | ||
``` | ||
|
||
## Parameters | ||
|
||
Containers are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate `<external>:<internal>` respectively. For example, `-p 8080:80` would expose port `80` from inside the container to be accessible from the host's IP on port `8080` outside the container. | ||
|
||
| Parameter | Function | | ||
| :----: | --- | | ||
| `-p 3001` | Web Desktop GUI HTTPS | | ||
| `-e SUBFOLDER=/` | Specify a subfolder to use with reverse proxies, IE `/subfolder/` | | ||
| `-v /config` | abc users home directory | | ||
| `-v /var/run/docker.sock` | Docker Socket on the system, if you want to use Docker in the container | | ||
|
||
## Building locally | ||
|
||
If you want to make local modifications to these images for development purposes or just to customize the logic: | ||
|
||
```bash | ||
git clone https://github.com/linuxserver/docker-webtop.git | ||
cd docker-webtop | ||
docker build \ | ||
--no-cache \ | ||
--pull \ | ||
-t lscr.io/linuxserver/webtop:latest . | ||
``` |