- Create stack.env file and put all environment variables there
docker-compose up
- Go to Portainer
- Go to stacks
- Create a new github stack
- put the url
https://github.com/deets-pro/portainer_deets_stack
andrefs/heads/main
- Add your environment variables
- Deploy
- Voila
-
Local directory /home/deets/storage needs
chown -R 1000:1000 .
-
You might need laravel clean up commands
docker exec deets_laravel_php_v2 php artisan clear:data docker exec deets_laravel_php_v2 php artisan cache:clear docker exec deets_laravel_php_v2 php artisan view:clear docker exec deets_laravel_php_v2 php artisan route:clear docker exec deets_laravel_php_v2 php artisan clear-compiled docker exec deets_laravel_php_v2 php artisan config:cache docker exec deets_laravel_php_v2 php artisan key:generate (be cauctious with this one) docker exec deets_laravel_php_v2 php artisan storage:link docker exec deets_laravel_php_v2 php artisan migrate --seed (be cauctious with this one)