Enable redis cache

- Enabled redis cache
- Changed some cache timings
- Disabled GitHub Reporting
pull/7/head
Angel Garcia 3 years ago
parent e71492d5e7
commit 239b5f955f

@ -13,6 +13,11 @@ RUN apt-get update && apt-get install -y \
RUN git clone https://github.com/jikan-me/jikan-rest.git -b v3 . \ RUN git clone https://github.com/jikan-me/jikan-rest.git -b v3 . \
&& git checkout v3 \ && git checkout v3 \
&& cp .env.dist .env \ && cp .env.dist .env \
&& sed -i "s/CACHE_DRIVER=.*/CACHE_DRIVER=redis/" .env \
&& sed -i "s/REDIS_HOST=.*/REDIS_HOST=jikan-redis/" .env \
&& sed -i "s/CACHE_404_EXPIRE=.*/CACHE_404_EXPIRE=3600/" .env \
&& sed -i "s/CACHE_SEARCH_EXPIRE=.*/CACHE_SEARCH_EXPIRE=1000/" .env \
&& sed -i "s/GITHUB_REPORTING=.*/GITHUB_REPORTING=false/" .env \
&& composer require 'composer/package-versions-deprecated' \ && composer require 'composer/package-versions-deprecated' \
&& composer install --prefer-dist --no-progress --classmap-authoritative --no-interaction \ && composer install --prefer-dist --no-progress --classmap-authoritative --no-interaction \
&& composer update jikan-me/jikan && composer update jikan-me/jikan

Loading…
Cancel
Save