Skip to content
Snippets Groups Projects
Commit 8604e2fd authored by Robert Piotrowski's avatar Robert Piotrowski
Browse files

Add python_app service

parent 4cd58ca0
Branches
Tags
No related merge requests found
......@@ -45,7 +45,14 @@ services:
volumes:
- ./mosquitto/config/mosquitto.conf:/mosquitto/config/mosquitto.conf:ro
restart: always
python_app:
build:
context: serial_to_mqtt_bridge
dockerfile: Dockerfile
depends_on:
- mosquitto
links:
- mosquitto
volumes:
grafana_data: {}
influxdb_data: {}
FROM python:3.9
# Or any preferred Python version.
WORKDIR /src
COPY . .
RUN pip install -r requirements.txt
CMD ["python3", "./serial_to_mqtt.py"]
# Or enter the name of your unique directory and parameter set.
\ No newline at end of file
mqtt:
broker: "localhost"
broker: "mosquitto"
port: 1883
topic: "serial2MQTT"
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment