Skip to content

Instantly share code, notes, and snippets.



Created Feb 22, 2017
What would you like to do?
Setup Cachet on Docker
#!/usr/bin/env bash
# Following the steps on
setup () {
git clone cachet-docker
cd cachet-docker
LATEST_TAG=$(git tag -l | grep -i '^v' | sort | tail -n 1)
# Checkout latest source tag
git checkout $LATEST_TAG
# build containers
docker-compose build
# start service
docker-compose up -d
# give cachet time to start
sleep 5
# generate key
docker exec -i cachetdocker_cachet_1 php artisan key:generate
# install
docker exec -i cachetdocker_cachet_1 php artisan app:install
start () {
cd cachet-docker
docker-compose up -d
stop () {
cd cachet-docker
docker-compose down
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.