mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-07-01 19:24:34 +02:00
Merge pull request #410 from pataquets/master
Docker Compose manifest: mount host's keys and few other improvements.
This commit is contained in:
commit
68e9d6880d
@ -12,7 +12,7 @@ Custom SSH server written in Go. Instead of a shell, you get a chat prompt.
|
|||||||
|
|
||||||
Join the party:
|
Join the party:
|
||||||
|
|
||||||
```
|
``` console
|
||||||
$ ssh ssh.chat
|
$ ssh ssh.chat
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -52,7 +52,7 @@ Additionally, `make debug` runs the server with an http `pprof` server. This all
|
|||||||
|
|
||||||
## Quick Start
|
## Quick Start
|
||||||
|
|
||||||
```
|
``` console
|
||||||
Usage:
|
Usage:
|
||||||
ssh-chat [OPTIONS]
|
ssh-chat [OPTIONS]
|
||||||
|
|
||||||
@ -74,7 +74,7 @@ Help Options:
|
|||||||
After doing `go get github.com/shazow/ssh-chat/...` on this repo, you should be able
|
After doing `go get github.com/shazow/ssh-chat/...` on this repo, you should be able
|
||||||
to run a command like:
|
to run a command like:
|
||||||
|
|
||||||
```
|
``` console
|
||||||
$ ssh-chat --verbose --bind ":22" --identity ~/.ssh/id_dsa
|
$ ssh-chat --verbose --bind ":22" --identity ~/.ssh/id_dsa
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -1,7 +1,13 @@
|
|||||||
version: '3'
|
version: '3.2'
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
|
container_name: ssh-chat
|
||||||
build: .
|
build: .
|
||||||
ports:
|
ports:
|
||||||
- 2022:2022
|
- 2022:2022
|
||||||
restart: always
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- type: bind
|
||||||
|
source: ~/.ssh/
|
||||||
|
target: /root/.ssh/
|
||||||
|
read_only: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user