Skip to content

Commit

Permalink
Docker Compose manifest: mount host's keys and few other improvements.
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
pataquets committed Mar 7, 2022
1 parent df72223 commit 3f857cf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Custom SSH server written in Go. Instead of a shell, you get a chat prompt.

Join the party:

```
``` console
$ ssh ssh.chat
```

Expand Down Expand Up @@ -52,7 +52,7 @@ Additionally, `make debug` runs the server with an http `pprof` server. This all

## Quick Start

```
``` console
Usage:
ssh-chat [OPTIONS]

Expand All @@ -74,7 +74,7 @@ Help Options:
After doing `go get github.com/shazow/ssh-chat/...` on this repo, you should be able
to run a command like:

```
``` console
$ ssh-chat --verbose --bind ":22" --identity ~/.ssh/id_dsa
```

Expand Down
12 changes: 9 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
version: '3'
version: '3.2'
services:
app:
container_name: ssh-chat
build: .
ports:
- 2022:2022
restart: always
- 2022:2022
restart: unless-stopped
volumes:
- type: bind
source: ~/.ssh/
target: /root/.ssh/
read_only: true

0 comments on commit 3f857cf

Please sign in to comment.