Skip to content

kerrongordon/gibbon-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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: