luckykenlin/docker-for-forge

Docker utilities to use Docker within Forge deployed servers.

v1.0.1 2024-06-27 20:42 UTC

This package is auto-updated.

Last update: 2024-10-27 21:27:51 UTC


README

Prepare your repo locally

composer require luckykenlin/docker-for-forge --dev
php artisan dockerEnv:install

Configure Forge Add site

Deploy script

cd /home/forge/FOLDER
git pull origin $FORGE_SITE_BRANCH

#Make sure `docker-compose.yml` is Git ignored in your project
cp docker-compose.prod.yml docker-compose.yml

docker-compose build

docker-compose up -d --remove-orphans

./Taskfile forgeCmd "php artisan migrate --force"