A .yml file for shace services
- 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/shace-co/portainer_deets_stack
andrefs/heads/main
- Add your environment variables
- Deploy
- Voila
-
Local directory /home/shace/storage needs
chown -R 1000:1000 .
-
You might need laravel clean up commands
docker exec shace-api-v2 php artisan clear:data docker exec shace-api-v2 php artisan cache:clear docker exec shace-api-v2 php artisan view:clear docker exec shace-api-v2 php artisan route:clear docker exec shace-api-v2 php artisan clear-compiled docker exec shace-api-v2 php artisan config:cache docker exec shace-api-v2 php artisan key:generate (be cauctious with this one) docker exec shace-api-v2 php artisan storage:link docker exec shace-api-v2 php artisan migrate --seed (be cauctious with this one)