Commit ede171eb authored by Gezer's avatar Gezer
Browse files

we still need to modify the docker files

so that we can start the project from their
No related merge requests found
Showing with 17 additions and 7 deletions
+17 -7
version: '3.9'
services: services:
mqtt-backend:
image: mqtt-influx-backend
container_name: mqtt-backend
build: ./mqtt
command: uv run -m mqtt_influx_backend.main
env_file:
- mqtt/.env
restart: unless-stopped
#depends_on:
# - influxdb
# - mosquitto
backend: backend:
build: ./backend build: ./backend
ports: ports:
......
...@@ -9,11 +9,8 @@ COPY . . ...@@ -9,11 +9,8 @@ COPY . .
# uv installieren # uv installieren
RUN pip install uv RUN pip install uv
# Abhängigkeiten aus pyproject.toml installieren # Installiere Abhängigkeiten aus pyproject.toml
RUN uv pip install --editable . --no-cache-dir RUN uv pip install . --no-cache-dir --system
# PYTHONPATH setzen, damit das Import-Modul korrekt ist
ENV PYTHONPATH=src
# Startkommando # Startkommando
CMD ["uv", "run", "-m", "mqtt_influx_backend.main"] CMD ["uv", "run", "-m", "mqtt_influx_backend.main"]
...@@ -4,5 +4,6 @@ ...@@ -4,5 +4,6 @@
"77:88:99:AA:BB:CC": "Schlafzimmer", "77:88:99:AA:BB:CC": "Schlafzimmer",
"DE:AD:BE:EF:12:34": "", "DE:AD:BE:EF:12:34": "",
"DK:AD:BE:EF:12:34": "", "DK:AD:BE:EF:12:34": "",
"EK:AD:BE:EF:12:34": "" "EK:AD:BE:EF:12:34": "",
"lK:AD:BE:EF:12:34": ""
} }
\ No newline at end of file
Supports Markdown
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