Browse Source

update docker instructions

pull/123/head
butlerx 7 years ago
committed by cbutler
parent
commit
f45c307d1b
No known key found for this signature in database GPG Key ID: 9EB3D625BD14DDEC
  1. 21
      README.md
  2. 3
      docker-compose.yml

21
README.md

@ -11,6 +11,9 @@ hterm source - https://chromium.googlesource.com/apps/libapps/+/master/hterm/
![Wetty](/terminal.png?raw=true)
This fork has a few of the open prs from the original merged in as well as scripts to make running
in docker better.
Install
-------
@ -86,14 +89,17 @@ Dockerized Version
This repo includes a Dockerfile you can use to run a Dockerized version of wetty. You can run
whatever you want!
Just do:
Just modify docker-compose and run:
```
docker run --name term -p 3000 -dt krishnasrinivas/wetty
docker-compose up -d
```
Visit the appropriate URL in your browser (`[localhost|$(boot2docker ip)]:PORT`).
The username is `term` and the password is `term`.
The default username is `term` and the password is `term`, if you did not modify `SSHHOST`
If you dont want to build the image yourself just remove the line `build; .`
Run wetty as a service daemon
-----------------------------
@ -106,6 +112,9 @@ Install wetty globally with -g option:
$ sudo start wetty
```
This will start wetty on port 3000. If you want to change the port or redirect stdout/stderr you should change the last line in `wetty.conf` file, something like this:
exec sudo -u root wetty -p 80 >> /var/log/wetty.log 2>&1
This will start wetty on port 3000. If you want to change the port or redirect
stdout/stderr you should change the last line in `wetty.conf` file, something
like this:
```
exec sudo -u root wetty -p 80 >> /var/log/wetty.log 2>&1
```

3
docker-compose.yml

@ -2,8 +2,9 @@ version: "3"
services:
wetty:
container_name: wetty
build: .
image: redbrick/wetty
container_name: wetty
tty: true
working_dir: /app
ports:

Loading…
Cancel
Save