Coder Social home page Coder Social logo

docker-mezzanine's Introduction

Docker-Mezzanine

Mezzanine for Django running with Docker Compose. Configured to create separate container for running PostgreSQL, and creates the data volume in the project directory.

Prerequisites

  • GIT
  • Docker & Docker Compose

Command Line Installation

  1. Clone the project into a local directory

    • git clone https://github.com/Maaack/Docker-Mezzanine.git YourDumbProjectName
  2. Go into your dumb project directory

    • cd YourDumbProjectName
  3. Double check that things checked out

  4. Set the local settings

    • mv default_local_settings.py local_settings.py
    • You should also go into the file and change the SECRET_KEY
  5. Run Docker Compose locally

    • docker-compose up
    • You might need to run Docker Compose as the admin
    • sudo docker-compose up

Install the Database

Looking for suggestions on how to improve this part

  1. Identify your container

    • sudo docker ps
  2. Run bash interactively in the container

    • $> sudo docker exec -it CONTAINER_NAME /bin/bash
    • You are inside the container if you see this prompt
    • CONTAINER_NAME$>
  3. Create the database

    • CONTAINER_NAME$> python manage.py createdb
  4. Exit the container

    • CONTAINER_NAME$> exit

All done

  • Open your browser and go to http://localhost:8000/
    • You should see all sorts of amazing things there
    • Or error messages, very helpful error messages

Additional Resources

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.