From 971a28124f70fedacd6d2eb35125d328ba87df39 Mon Sep 17 00:00:00 2001 From: Blaise Thompson Date: Fri, 30 Oct 2020 12:19:25 -0500 Subject: compose version 3.3 --- README.md | 28 +++++++++++----------------- docker-compose.yml | 4 ++-- 2 files changed, 13 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index bcac4ad..9c839f9 100644 --- a/README.md +++ b/README.md @@ -2,24 +2,18 @@ Documentation and source code for departmental mqtt server hosted at https://mosquitto.chem.wisc.edu. -To run: +To prepare (starting with Ubuntu 20.04) ``` -$ docker-compose up +$ apt install docker.io +$ apt install docker compose ``` -## mosquitto - -https://mosquitto.org/ - -## influxdb - -https://www.influxdata.com/ +This machine needs the following ports to be open to the campus network: +- 80 (http) +- 1883 (mqtt) +- 8086 (influxdb) -## bridge daemon - -`write_influx.py` - -move service file to /etc/systemd/system/ -`systemctl enable write-influx.service` -`systemctl start write-influx.service` -now it will run forever \ No newline at end of file +To run: +``` +$ docker-compose up --build +``` \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 9444ddd..d5b0812 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,4 @@ -version: '3.8' +version: '3.3' services: broker: @@ -19,7 +19,7 @@ services: web: build: ./web ports: - - 8080:80 + - 80:80 depends_on: - broker - db -- cgit v1.2.3