Revision [6157]

This is an old revision of TDMDocker made by ZorrUno on 2020-08-20 10:19:37.

 

Tasmota Device Manager and Docker


dockerfile

FROM jlesage/baseimage-gui:debian-10
#FROM debian:stable

RUN apt-get update && apt-get upgrade -y
RUN add-pkg libqt5x11extras5 python3 python3-pip git -y --no-install-recommends
RUN pip3 install --upgrade pip
RUN pip3 install setuptools

# Install Tasmota Device Manager
RUN pip3 install tdmgr

# Environment Variables
#ENV TZ="Pacific/Auckland"
# Copy the start script.
COPY startapp.sh /startapp.sh

# Expose ports
#EXPOSE 5810 5910

# Create volume
VOLUME /config



Docker Compose

version: '3.3'
services:
	tasmota-device-manager:
	build: .
	volumes:
		- "/dockervolumes/tasmota-device-manager/config:/config"
		- "/etc/localtime:/etc/localtime:ro"
		- "/etc/timezone:/etc/timezone:ro"
	ports:
		- '5810:5810'
		- '5910:5910'
	container_name: tasmota-device-manager
	hostname: tasmota-device-manager
	restart: unless-stopped


/startapp.sh

#!/bin/sh
export HOME=/home/app
exec /usr/bin/python3 /usr/local/bin/tdmgr.py
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki