From 8a8c5029cb408bc4a9d73abdfcefe5d9bc369717 Mon Sep 17 00:00:00 2001 From: Junwei Chen Date: Fri, 15 Nov 2019 01:42:35 -0800 Subject: [PATCH] Update stack Signed-off-by: Junwei Chen --- docker-compose.yml | 10 +++++++--- jikan/.env | 2 +- jikan/Dockerfile | 2 +- jikan/run-jikan.sh | 2 +- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index cb15ebb..ac74a4e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,4 @@ -version: "3" +version: "3.4" services: @@ -9,9 +9,13 @@ services: depends_on: - jikan-redis ports: - - "9001:80" + - "9000:80" + networks: + - default restart: always + container_name: jikan-rest-api jikan-redis: - image: redis:5.0.3 + image: redis:5.0.6-buster restart: always + container_name: jikan-rest-redis diff --git a/jikan/.env b/jikan/.env index 35426ef..db07021 100755 --- a/jikan/.env +++ b/jikan/.env @@ -11,7 +11,7 @@ DB_DATABASE=homestead DB_USERNAME=homestead DB_PASSWORD=secret -CACHE_DRIVER=file +CACHE_DRIVER=redis QUEUE_DRIVER=redis CACHE_METHOD=legacy diff --git a/jikan/Dockerfile b/jikan/Dockerfile index 6c1be9d..525c4fb 100755 --- a/jikan/Dockerfile +++ b/jikan/Dockerfile @@ -1,4 +1,4 @@ -FROM php:7.3.2-apache-stretch +FROM php:7.3.11-apache-buster ENV COMPOSER_ALLOW_SUPERUSER 1 diff --git a/jikan/run-jikan.sh b/jikan/run-jikan.sh index fd1c4ea..45f3638 100755 --- a/jikan/run-jikan.sh +++ b/jikan/run-jikan.sh @@ -2,5 +2,5 @@ # allow write permission chmod -R a+w storage/ -# php:7.3.2-apache-stretch ENTRYPOINT +# php:7.3.11-apache-buster ENTRYPOINT docker-php-entrypoint apache2-foreground \ No newline at end of file