8000 fix autopaho Docker example by agebhar1 · Pull Request #300 · eclipse-paho/paho.golang · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix autopaho Docker example #300

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10000
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ allow_anonymous true # Anyone can connect
listener 1883

# Also allow websocket connections over port 80
listener 80
listener 8080
protocol websockets

#log_type error
Expand Down
2 changes: 1 addition & 1 deletion autopaho/examples/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ services:
context: ../../../
dockerfile: autopaho/examples/docker/subscriber/dockerfile
environment:
subdemo_serverURL: ws://mosquitto:80
subdemo_serverURL: ws://mosquitto:8080
subdemo_clientID: mqtt_subscriber
subdemo_topic: topic1
subdemo_qos: 1
Expand Down
8 changes: 4 additions & 4 deletions autopaho/examples/docker/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ This will display a lot of information (mosquitto is running with debug level lo
71D2 docker-compose logs --follow sub
```

Note: Messages received by the subscriber will be written to `shared/receivedMessages` (you may want to delete the
contents of this file from time to time!).
Note: Messages received by the subscriber will be written to `binds/sub/` if `subdemo_writeToDisk` is set to `true` in
`docker-compose.yml` (you may want to delete the contents of this file from time to time!).

To stop everything run:

Expand All @@ -59,7 +59,7 @@ installed locally (edit the `docker-compose.yml` and change the `published` port
You can simulate the loss of network connectivity by disconnecting the network adapter within a container. e.g.

```
docker network disconnect lostpackets_test-net lostpackets_pub_1
docker network connect lostpackets_test-net lostpackets_pub_1
docker network disconnect lostpackets_test-net docker-pub-1
docker network connect lostpackets_test-net docker-pub-1
```

0