ssh-chat-docker/README.md

46 lines
1.0 KiB
Markdown
Raw Permalink Normal View History

2018-03-23 17:37:02 +00:00
# ssh-chat docker
Docker image of [ssh-chat](https://github.com/shazow/ssh-chat) by [shazow](https://github.com/shazow).
2020-09-24 10:07:22 +00:00
Dockerhub: [ssh-chat](https://hub.docker.com/r/byreqz/ssh-chat)
2018-03-23 17:37:02 +00:00
# Usage
Generate keys outside of Docker to keep persistence, and not get warnings:
2021-02-12 23:41:21 +00:00
```bash
2018-03-23 17:37:02 +00:00
$ ssh-keygen -t rsa -b 4096 -N '' -f ./ssh-chat-key
```
Run the docker image:
2021-02-12 23:41:21 +00:00
```bash
2020-09-17 11:21:20 +00:00
$ docker run -p 2022:2022 -v /ssh-chat-key:/ssh_key -v /admin_keys:/admin_keys byreqz/ssh-chat:latest
2018-03-23 17:37:02 +00:00
```
You may supply additional arguments to the image, example:
2021-02-12 23:41:21 +00:00
```bash
2020-09-17 11:21:20 +00:00
$ docker run -p 22:22 -v /ssh-chat-key:/ssh_key -v /admin_keys:/admin_keys byreqz/ssh-chat:latest --bind ":22"
```
Docker Compose:
2021-02-12 23:41:21 +00:00
```yaml
2020-09-17 11:21:20 +00:00
version: '3.1'
services:
ssh-chat:
image: byreqz/ssh-chat:latest
restart: always
ports:
- "2022:2022"
volumes:
- ./ssh-chat-key:/ssh_key
- ./ssh-chat/admin_keys:/admin_keys
2020-09-21 11:13:19 +00:00
- ./motd:/motd
2020-09-17 11:21:20 +00:00
container_name: ssh-chat
2018-03-23 17:37:02 +00:00
```
# Development
Improvements and ideas can be found on the projects issues section.