Browse Source

Update README with information for docker

pull/311/head
Sven Fischer 4 years ago
parent
commit
6e7f126225
  1. 18
      README.md
  2. 19
      containers/docker-compose.traefik.yml

18
README.md

@ -81,6 +81,24 @@ Check out the
[Flags docs](https://github.com/butlerx/wetty/blob/master/docs/flags.md) for a [Flags docs](https://github.com/butlerx/wetty/blob/master/docs/flags.md) for a
full list of flags full list of flags
### Docker container
To use wetty as a docker container, a docker image is available on
[docker hub](https://hub.docker.com/r/wettyoss/wetty). To run this image, use
```sh
docker run --rm -p 3000:3000 wettyoss/wetty --ssh-host=<YOUR-IP>
```
and you will be able to open a ssh session to the host given by `YOUR-IP` under
the URL [http://localhost:3000/wetty](http://localhost:3000/wetty).
It is recommended to drive wetty behind a reverse proxy to have HTTPS security
and possibly Let’s Encrypt support. Popular containers to achieve this are
[nginx-proxy](https://github.com/nginx-proxy/nginx-proxy) and
[traefik](https://traefik.io/traefik/). For traefik there is an example
docker-compose file in the containers directory.
## FAQ ## FAQ
Check out the [docs](https://github.com/butlerx/wetty/tree/master/docs) Check out the [docs](https://github.com/butlerx/wetty/tree/master/docs)

19
containers/docker-compose.traefik.yml

@ -0,0 +1,19 @@
version: '2'
services:
wetty:
image: wettyoss/wetty
command:
- --base=/
- --ssh-host=ssh.example.com
labels:
- "traefik.enable=true"
- "traefik.http.routers.wetty.rule=Host(`wetty.example.com`)"
reverse-proxy:
image: traefik
command: --providers.docker
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
Loading…
Cancel
Save