Skip to content

Commit

Permalink
Connect to the mqtt broker using the intercontainer network
Browse files Browse the repository at this point in the history
  • Loading branch information
AEtherC0r3 committed Oct 23, 2016
1 parent b8c017a commit 44d4b0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ services:
build:
context: .
dockerfile: Website-Dockerfile
links:
- mqtt
expose:
- "80"
- "443"
volumes:
- /etc/letsencrypt/live/www.lambdaspace.gr:/etc/letsencrypt/live/www.lambdaspace.gr:ro
- /etc/letsencrypt/archive/www.lambdaspace.gr:/etc/letsencrypt/archive/www.lambdaspace.gr:ro
depends_on:
- mqtt
restart: always

redirector:
Expand Down
2 changes: 1 addition & 1 deletion mqtt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# Subscribe example
client = MQTT::Client.connect(
:host => 'mqtt.lambdaspace.gr',
:host => 'mqtt',
:port => 8883,
:ssl => true,
)
Expand Down

0 comments on commit 44d4b0e

Please sign in to comment.