A webserver using FastAPI for interfacing with a UDP-controlled isolated voltage source. The frontend is written in vanilla html and javascript.
-- Andrew Mueller 2022
The webserver is packaged using docker. Docker commands to deploy or build the container:
docker rm -f vsource_controll_container
docker build -t vsource_controll .
run command:
docker run -d --restart unless-stopped --name vsource_controll_container -p 80:80 vsource_controll
docker run -d -p 80:80 vsource_controll -d --restart unless-stopped
Note: if you're changing something like CSS, you might need to rebuild the container with no cache:
docker build -t vsource_controll . --no-cache
- get the container id:
docker ps
- view the logs in real time
docker logs -f <container_id>