Skip to content

Commit

Permalink
Added Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Aratz M. Lasa committed Jun 18, 2020
1 parent 26d4cf3 commit 909e721
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
FROM python:3.8

WORKDIR /usr/src/toad_influx_query
WORKDIR /app

COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt

COPY ./toad_influx_query ./toad_influx_query
COPY ./run_server.sh ./run_server.sh
COPY ./run.sh ./run.sh

EXPOSE 80:8080
RUN mkdir ./config
VOLUME ./config

CMD [ "./run_server.sh" ]
CMD ["./run.sh"]

# docker run --network=iotoad_network -v $(pwd)/config:/app/config toad_influx_query
4 changes: 2 additions & 2 deletions config/config.ini
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[INFLUXDB] # Influx database
HOST=127.0.0.1
HOST=influxdb
PORT=8086
# DB is overwritten by the content of the MQTT topic
DB=sp_data

[MQTT] # Central MQTT broker
BROKER_HOST=127.0.0.1
BROKER_HOST=mqtt
BROKER_PORT=1883
RESPONSE_TIMEOUT=3

Expand Down

0 comments on commit 909e721

Please sign in to comment.