Sign inSign up

stackstack1234/python27

By stackstack1234

•Updated about 11 years ago

A base python 2.7 Docker image

Image
0

1.0K

stackstack1234/python27 repository overview

A python container in which to deploy a web app linked to an nginx-proxy and a database

⁠Enviroment Variables

  • $DB_NAME - The name of the database the app will use. Will be created if it does not exist. Default: $DB_USER
  • $DB_USER - The name of the user the app will access the database as. Default: $DB_NAME
  • $DB_PASSWORD - The password $DB_USER uses to access $DB_NAME
  • $DB_SUPER_USER - Used to create users and databases if they don't exist. Default 'admin'
  • $DB_SU_PASS - $DB_SUPER_PASS's password for db and user creation

⁠Usage:

create an .env file containing:

⁠app's database and credentials

DB_NAME=app DB_USER=app DB_PASS=SuperSecretAppPassword

⁠only needed to create db or user if they do not exist

DB_SUPER_USER=admin DB_SU_PASS=SuperSecretDbAdminPassword

⁠for nginx auto proxy

VIRTUAL_HOST app.dev

Tag summary

Content type

Image

Digest

sha256:6cfcec67c…

Size

72.9 MB

Last updated

about 11 years ago

docker pull stackstack1234/python27