luckykenlin / docker-for-forge
Docker utilities to use Docker within Forge deployed servers.
v1.0.1
2024-06-27 20:42 UTC
Requires
- php: ^8.0|^8.1|^8.2|^8.3
- illuminate/console: ^9.52.16|^10.0|^11.0
- illuminate/contracts: ^9.52.16|^10.0|^11.0
- illuminate/support: ^9.52.16|^10.0|^11.0
- symfony/console: ^6.0|^7.0
- symfony/yaml: ^6.0|^7.0
Requires (Dev)
- orchestra/testbench: ^7.0|^8.0|^9.0
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"