Simon536 / pi-web-server

This repository contains the code to build a Portainer stack to host a custom web server in a Docker container. It is intended to run on a Raspberry Pi 3 or 4, and allows for shutting down the hardware from a webpage.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Web Control Interface for Raspberry Pi Server

How to use

This repository is intended to be deployed using Portainer into a Docker environment. This can be done by creating a new Portainer stack.

Note: when making changes to the website content, remember to increment the image tag in docker-compose.yml. Otherwise Portainer will use the cached version of the image.

Tested on Portainer 2.11.0 and Docker 20.10.12

Features

  • Able to shutdown and restart the Pi hardware from a simple web interface
  • Able to cancel a shutdown or restart if it is initiated by accident
  • Display the client IP address

About

This repository contains the code to build a Portainer stack to host a custom web server in a Docker container. It is intended to run on a Raspberry Pi 3 or 4, and allows for shutting down the hardware from a webpage.

License:GNU Affero General Public License v3.0


Languages

Language:PHP 87.9%Language:Dockerfile 12.1%