From fddc163ef0d975993e606817f700cee40874d8c2 Mon Sep 17 00:00:00 2001 From: Bernhard B Date: Tue, 19 Oct 2021 17:51:06 +0200 Subject: [PATCH 1/3] Update OCTOPRINT.md * set the json-rpc mode as default mode in the provided docker-compose.yml example --- doc/OCTOPRINT.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/OCTOPRINT.md b/doc/OCTOPRINT.md index 5743c363..ddc9db77 100644 --- a/doc/OCTOPRINT.md +++ b/doc/OCTOPRINT.md @@ -16,6 +16,8 @@ version: "3" services: signal-cli-rest-api: image: bbernhard/signal-cli-rest-api:latest + environment: + - MODE=json-rpc #supported modes: json-rpc, native, normal ports: - "8080:8080" # map docker port 8080 to host port 8080. volumes: From dbab85d69cb0bd7b4d529e395ce732aaa30c3d27 Mon Sep 17 00:00:00 2001 From: Bernhard B Date: Tue, 19 Oct 2021 17:51:43 +0200 Subject: [PATCH 2/3] Update OCTOPRINT.md fixed whitespacing error in docker-compose.yml example --- doc/OCTOPRINT.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/OCTOPRINT.md b/doc/OCTOPRINT.md index ddc9db77..45a4b1d4 100644 --- a/doc/OCTOPRINT.md +++ b/doc/OCTOPRINT.md @@ -17,7 +17,7 @@ services: signal-cli-rest-api: image: bbernhard/signal-cli-rest-api:latest environment: - - MODE=json-rpc #supported modes: json-rpc, native, normal + - MODE=json-rpc #supported modes: json-rpc, native, normal ports: - "8080:8080" # map docker port 8080 to host port 8080. volumes: From 923a7916f4f684f49fc6d23c9cd03d0e4feebae5 Mon Sep 17 00:00:00 2001 From: "Lars K.W. Gohlke" Date: Tue, 19 Oct 2021 20:32:34 +0200 Subject: [PATCH 3/3] fix code example --- README.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 2e1d6a2b..5c2aedba 100644 --- a/README.md +++ b/README.md @@ -53,19 +53,18 @@ Notes: Sample `docker-compose.yml`file: -```sh +```yaml version: "3" services: signal-cli-rest-api: image: bbernhard/signal-cli-rest-api:latest - environment: - - MODE=normal #supported modes: json-rpc, native, normal + environment: + - MODE=normal #supported modes: json-rpc, native, normal #- AUTO_RECEIVE_SCHEDULE=0 22 * * * #enable this parameter on demand (see description below) - ports: + ports: - "8080:8080" #map docker port 8080 to host port 8080. volumes: - "./signal-cli-config:/home/.local/share/signal-cli" #map "signal-cli-config" folder on host system into docker container. the folder contains the password and cryptographic keys when a new number is registered - ``` ## Documentation