use redis for queues, sessions and cache (#618)

This commit is contained in:
Saeed Vaziry
2025-06-21 09:48:07 +02:00
committed by GitHub
parent 3196c0d954
commit 7bfa9ef91d
10 changed files with 40 additions and 9 deletions

View File

@ -8,7 +8,7 @@ ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get upgrade -y && apt-get autoremove -y
# requirements
RUN apt-get install -y software-properties-common curl zip unzip gcc nginx git \
RUN apt-get install -y software-properties-common curl zip unzip gcc nginx redis-server git \
cron gnupg gosu curl ca-certificates zip unzip supervisor libcap2-bin libpng-dev \
dnsutils librsvg2-bin fswatch wget openssh-client \
&& add-apt-repository ppa:ondrej/php -y \

View File

@ -9,6 +9,7 @@ services:
PASSWORD: "password"
APP_KEY: "base64:UodiJrx3DkcMlizmoimNlDn+yd4q5f2VbkBay19rJwM="
APP_PORT: 8000
APP_URL: "http://localhost:8000"
extra_hosts:
- 'host.docker.internal:host-gateway'
ports:

View File

@ -58,6 +58,7 @@ chown -R www-data:www-data /var/www/html \
&& chmod -R 755 /var/www/html/storage /var/www/html/bootstrap/cache
service php8.4-fpm start
service redis-server start
service nginx start
php /var/www/html/artisan migrate --force