diff options
author | Blaise Thompson <blaise@untzag.com> | 2020-10-30 12:19:25 -0500 |
---|---|---|
committer | Blaise Thompson <blaise@untzag.com> | 2020-10-30 12:19:25 -0500 |
commit | 971a28124f70fedacd6d2eb35125d328ba87df39 (patch) | |
tree | 52bba448fe4e7fcc24f75eedf194d23356204528 | |
parent | ad814c9b0c9830bbb09e5935d762898be79c22d9 (diff) |
compose version 3.3
-rw-r--r-- | README.md | 28 | ||||
-rw-r--r-- | docker-compose.yml | 4 |
2 files changed, 13 insertions, 19 deletions
@@ -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 |