diff --git a/README.md b/README.md index 86d7e52..cce4f66 100644 --- a/README.md +++ b/README.md @@ -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 ``` @@ -52,7 +52,7 @@ Additionally, `make debug` runs the server with an http `pprof` server. This all ## Quick Start -``` +``` console Usage: 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 to run a command like: -``` +``` console $ ssh-chat --verbose --bind ":22" --identity ~/.ssh/id_dsa ``` diff --git a/docker-compose.yml b/docker-compose.yml index 0c9cf64..d5a06f9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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