Skip to content

Instantly share code, notes, and snippets.

@lucenarenato
Forked from vluzrmos/docker-compose.yml
Created August 20, 2021 13:01
Show Gist options
  • Select an option

  • Save lucenarenato/e57ab1f28a076a35da2f89004672dd45 to your computer and use it in GitHub Desktop.

Select an option

Save lucenarenato/e57ab1f28a076a35da2f89004672dd45 to your computer and use it in GitHub Desktop.
Docker-compose replace command
# ...
services:
# ...
service-name:
# ...
command: >
bash -c "
php artisan cache:clear &&
php artisan config:clear &&
php artisan route:clear &&
php artisan view:clear &&
php artisan optimize &&
chown www-data:www-data -R storage bootstrap/cache &&
/usr/local/bin/start"
# ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment