mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-04-12 15:17:16 +03:00
Docker Compose manifest: mount host's keys and few other improvements.
* Add SSH keys mount (mimicking default non-Docker behaviour). * Increase manifest version to lowest 3.x supporting bind mounts. * Change restart policy from `always` to `unless-stopped`. * Set a container name. * Fix port indentation to 2 spaces, as done elsewhere.
This commit is contained in:
parent
df72223a5f
commit
3f857cf1f5
@ -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