Code Monkey home page Code Monkey logo

gibbon-docker's Introduction

Getting Started

Build Status Docker Cloud Build Status Docker Pulls Docker Stars

Install Docker on your system then clone this repo

FOR DEMO USE ONLY DO NOT USE IN PRODUCTION

git clone https://github.com/kerrongordon/gibbon-docker.git

cd gibbon-docker

Create a .env file

change database name, user and password

MYSQL_DATABASE=db
MYSQL_USER=user
MYSQL_PASSWORD=password
MYSQL_ROOT_PASSWORD=password

build Image

docker build -t kerrongordon/gibbon .

Start Docker Compose

docker-compose up -d

Connect to database with 127.0.0.1 on port 3306 open your web browser and go to localhost

Docker Compose example

version: "3"
services:
  gibbon:
    image: kerrongordon/gibbon:latest
    container_name: gibbon
    restart: unless-stopped
    ports:
      - 8080:80
    volumes:
      - my-gibbon:/var/www/gibbon.local/
    depends_on:
      - db

  db:
    image: mysql:latest
    container_name: mysql
    restart: unless-stopped
    environment:
      MYSQL_DATABASE: ${MYSQL_DATABASE}
      MYSQL_USER: ${MYSQL_USER}
      MYSQL_PASSWORD: ${MYSQL_PASSWORD}
      MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
    ports:
      - '3306:3306'
    volumes:
      - my-db:/var/lib/mysql

volumes:
  my-db:
  my-gibbon:

gibbon-docker's People

Contributors

kerrongordon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gibbon-docker's Issues

unable to connect to db

Hello,

Thank you for creating this project.

I have been trying to setup Gibbon but while going through the webpage installer (http://0.0.0.0/installer/install.php) I get an error - database connection could not be established

I have followed the steps as given below -

  1. docker-compose up -d (to build and run the docker containers)

Screenshot 2019-08-28 at 20 56 39

  1. Install as per instructions given in the webpage (please check for the screenshots for more info)

Screenshot 2019-08-28 at 20 55 38
Screenshot 2019-08-28 at 20 55 53

Please note I can connect to the DB via DBeaver (database viewer client)
Screenshot 2019-08-28 at 21 06 32

I may be doing something wrong here, any help to resolve this is greatly appreciated.

Thank you,
Nikhil

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.