Skip to content

McKay1717/peering-manager-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

peering-manager-docker

This repository is a Docker image for https://github.com/respawner/peering-manager/

This imagee include a custom configuration file that allow to get configuration from the ENV. This image was designed to be use in a non-produtcion environement (Dev, test, etc) and is not enouth tested. Use this image at your own risk.

What the image do

  1. Check if a database upgrade or install is required and update the statics files
  2. Update python dependancy
  3. Check if install.lock is available
  4. If not create django superuser based en ENV var :
    • DJANGO_SUPERUSER_USERNAME (Mandatory, default root)
    • DJANGO_SUPERUSER_PASSWORD (Mandatory, default changeMe)
    • DJANGO_SUPERUSER_EMAIL (Mandatory, default root@localhost)

Minimal Dockerfile

version: '3.1'

services:

  db:
    image: postgres
    restart: always
    environment:
      POSTGRES_USER: peering_manager
      POSTGRES_PASSWORD: example

  peering_manager:
    image: mckay1717/peering-manager
    restart: always
    environment:
      DATABASE_NAME: peering_manager
      DATABASE_USER: peering_manager
      DATABASE_PASSWORD: example
      DATABASE_HOST: db
      SECRET_KEY: ramdom String
    ports:
      - 8080:8000

ENV

Releases

No releases published

Packages

No packages published