Giter Club home page Giter Club logo

docker's Introduction

Cachet Docker Image

This is the official repository of the Docker image for Cachet.

Cachet is a beautiful and powerful open source status page system, a free replacement for services such as StatusPage.io, Status.io and others.

For full documentation, visit the Installing Cachet with Docker page.

Supporting Cachet

Cachet is a BSD-3-licensed open source project. If you'd like to support future development, check out the Cachet Patreon campaign.

Quickstart

  1. Clone this repository
git clone https://github.com/CachetHQ/Docker.git
  1. Edit the docker-compose.yml file to specify your ENV variables.

Note: You must specify a unique APP_KEY including base64: prefix generated by php artisan key:generate within the container.

  1. To build an image containing a specific Cachet release, set the cachet_ver ARG in the docker-compose.yml

The master branch and cachethq/docker:latest Docker automated build are a work in progress / development version of the upstream https://github.com/CachetHQ/Cachet project. As such, master or latest should not be used in a production environment as it can change at anytime.

We strongly recommend specifying a stable Cachet Release at build time as mentioned above.

  1. Build and run the image
docker-compose build
docker-compose up
  1. cachethq/docker runs on port 8000 by default. This is exposed on host port 80 when using docker-compose.

Docker Hub Automated build

cachethq/docker is available as a Docker Hub Trusted Build.

For a full list of Cachet versions released as Docker images please see the list of Docker hub tags.

Please use a tagged Cachet Docker image release or one of the tagged builds from https://hub.docker.com/r/cachethq/docker/tags/ with docker pull cachethq/docker:2.3.12.

Debugging

  • The services such as Cachet, supervisord, nginx, and php-fpm log to stdout and sdterr, and are visible in the Docker runtime output.

  • Setting the DEBUG Docker environment variable within the docker-compose.yml file or at runtime to true will enable debugging of the container entrypoint init script.

Testing

Pull requests must pass the Bash Automated Testing System tests, which run on Travis CI via located in the test directory.

Use make test to manually run the tests.

Development of Cachet using this docker environment

  1. Clone the official repo of CachetHQ/Docker:
git clone https://github.com/cachethq/Docker.git cachet-docker
cd cachet-docker
git tag -l
git checkout $LATEST_TAG
  1. Clone the official repo of CachetHQ/Cachet here and do composer install:
git clone https://github.com/CachetHQ/Cachet.git
  1. Setup the Cachet project:

Note: This requires Composer be installed on your Docker host.

cd Cachet
composer install
cp ../conf/.env.docker ./.env
cd ..
  1. Edit the docker-compose.yml file to bind mount the repo as a volume:
cachet:
  volumes:
    - ./Cachet/:/var/www/html/
  ...  
  1. Build and run the container:
docker-compose up
  1. Open new terminal and run the following commands after getting container name via docker ps:
docker exec -i cachetdocker_cachet_1  php artisan key:generate
docker exec -i cachetdocker_cachet_1  php artisan app:install

docker's People

Contributors

djdefi avatar wfjsw avatar jbrooksuk avatar mridwankurniawan avatar grahamcampbell avatar zemirco avatar shuichiro-makigaki avatar andygrunwald avatar cit1zen avatar naorlivne avatar atmosx avatar mattallty avatar camandel avatar andelhie avatar axilleas avatar mthota15 avatar xrahul avatar gottfrois avatar nstapelbroek avatar nickbusey avatar misenhower avatar mathieuruellanmyscript avatar madhu1512 avatar jadb avatar gcox avatar mcfedr avatar felixoi avatar falkw avatar riemers avatar davidcarrington avatar

Watchers

James Cloos avatar

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.