gotty-docker/README.md

53 lines
1.4 KiB
Markdown
Raw Permalink Normal View History

2021-06-23 20:01:36 +00:00
# gotty-docker
this is a dynamically built gotty container
2021-06-23 20:10:51 +00:00
## features:
2021-06-23 20:01:36 +00:00
- select packages with environment values
- easily run in docker composes
- available as alpine and debian base images
2021-06-23 20:10:51 +00:00
## branches
### alpine
- available with :latest
- base alpine image + curl, jq, tmux and libc6-compat (light glibc compatibility to get gotty running)
- main and community repo available
### debian
- available with :debian
- base image + curl, jq and tmux
- sid main repo available
2021-06-25 19:42:18 +00:00
## environment values
2021-06-25 19:43:38 +00:00
- port - sets the port the gotty web-ui runs at (def. 8080)
- userpass - sets a username and password for the webui (optional, def. none)
- title - set application title (browser and tmux session title, def. gotty)
- pkgs - additional packages to install when the container is started (optional, def. none)
- command - the command to run (required, def. none/pfetch)
2021-07-10 18:09:36 +00:00
- use_tmux - either open a subshell for every page load (false) or just attach to a single shell started at the beginning (true) (optional, def. true)
2021-07-10 23:28:01 +00:00
- allow_write - allow users to send input, should be used with auth (optional, def. false)
2021-06-25 19:42:18 +00:00
2021-06-23 20:10:51 +00:00
## compose
2021-06-23 20:01:36 +00:00
this example can also be found in the repo
```yaml
version: '2.3'
services:
gotty-docker:
container_name: gotty-docker
image: byreqz/gotty-docker:latest
restart: unless-stopped
ports:
- 1234:1234
environment:
- port=1234
- userpass=user:pass
- title=1234
- pkgs=htop
- command=htop
2021-07-10 18:09:36 +00:00
- use_tmux=true
2021-06-23 20:01:36 +00:00
```
2021-06-25 19:42:18 +00:00