updating readme with docker info
This commit is contained in:
parent
ed08994a7c
commit
a7824ef448
31
README.md
31
README.md
@ -7,3 +7,34 @@ This is a generic handler that will accept any form of data and pass it through
|
|||||||
### Usage
|
### Usage
|
||||||
> POST /slack/{matrixRoom}/{matrixUser}/{matrixPassword}
|
> POST /slack/{matrixRoom}/{matrixUser}/{matrixPassword}
|
||||||
This is a Slack-friendly handler that will accept any form of Slack data and pass through just the text to Matrix using the appropriate JSON format.
|
This is a Slack-friendly handler that will accept any form of Slack data and pass through just the text to Matrix using the appropriate JSON format.
|
||||||
|
|
||||||
|
|
||||||
|
### Docker Usage
|
||||||
|
|
||||||
|
#### Prebuilt Image
|
||||||
|
There is a prebuilt image already on `registry.linuxrocker.com/matrix-handler:latest`
|
||||||
|
|
||||||
|
#### Building Your Own
|
||||||
|
|
||||||
|
You can build the image by running
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker build -t myrepo/matrix-handler:latest .
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Docker Compose
|
||||||
|
You can use these settings for deploying via Docker Compose.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
version: '3.5'
|
||||||
|
services:
|
||||||
|
matrix-handler:
|
||||||
|
image: registry.linuxrocker.com/matrix-handler:latest
|
||||||
|
restart: always
|
||||||
|
container_name: matrix-handler
|
||||||
|
ports:
|
||||||
|
- 3000:3000
|
||||||
|
volumes:
|
||||||
|
- ./config.json:/config/config.json:ro
|
||||||
|
```
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ import (
|
|||||||
|
|
||||||
// Run ...
|
// Run ...
|
||||||
func Run(info *router.BuildInfo) error {
|
func Run(info *router.BuildInfo) error {
|
||||||
conf, err := config.GetConfig("config.json")
|
conf, err := config.GetConfig("/config/config.json")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal().Err(err)
|
log.Fatal().Err(err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user