A template for web-apps
This is a barebone that I like to use for web-servers. It uses skeleton
on the front-end, nginx
as a reverse-proxy, Gunicorn
as HTTP-server and Flask
as web-framework. All directories/files are empty I think, so you just need to fill them. The entire stack is dockerized.
First download the latest tarball
and unpack it. In order to install the barebone, first get modify the htmls
, python
files etc. To run the service you need to have docker
installed (any recent version ill do):
./service.sh build
This installs the image. Starting the container is done by:
./service.sh start
This starts nginx
and lets it listen on port 80. So navigate to localhost
or 127.0.0.1
. You should see something like this:
When you are finished, stop the container again:
./service.sh stop
- Simon Dirmeier simon.dirmeier@web.de