Simple Flask-based python app returns status code based on connection to/query against a postgres db
295
Simple Flask-based python application that returns status code based on the result of a connection to and query against a postgres db.
The following custom values can be passed in as env vars
Build the container from this directory with
docker build -t <image_name> .
With any <image_name>
Run the container with
docker run <-e KEY=VALUE> -p 8080:8080 <image_name>
With <image_name> from the above step, and <-e> for any intended environment variables.
Install required packages from requirements.txt
Run with python3 ./main.py. Prepend or set globally any env vars desired.
Content type
Image
Digest
Size
21.8 MB
Last updated
over 5 years ago
docker pull omnisci/pg-mon