From af053b4d530bb2b6e41c20ea4ec0b883d7a0c1e9 Mon Sep 17 00:00:00 2001 From: Leonid Nikitin Date: Tue, 11 Jun 2024 22:42:58 +0500 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=BA=20Redis=20Volumes.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose-prod.yml | 2 ++ docker-compose-prod_docker-hub.yml | 2 ++ docker-compose.yml | 2 ++ redis/.gitignore | 1 + 4 files changed, 7 insertions(+) create mode 100644 redis/.gitignore diff --git a/docker-compose-prod.yml b/docker-compose-prod.yml index a4bb96c..b0eb113 100644 --- a/docker-compose-prod.yml +++ b/docker-compose-prod.yml @@ -80,6 +80,8 @@ services: redis: image: redis:3.0-alpine # restart: always + volumes: + - ./redis/data:/data db: image: docker.io/mysql:8.0.33 command: --default-authentication-plugin=mysql_native_password diff --git a/docker-compose-prod_docker-hub.yml b/docker-compose-prod_docker-hub.yml index c46994e..5b07e03 100644 --- a/docker-compose-prod_docker-hub.yml +++ b/docker-compose-prod_docker-hub.yml @@ -50,6 +50,8 @@ services: redis: image: redis:3.0-alpine # restart: always + volumes: + - ./redis/data:/data swagger: image: swaggerapi/swagger-ui depends_on: diff --git a/docker-compose.yml b/docker-compose.yml index b098d3c..ffbad99 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -62,6 +62,8 @@ services: - ./app/application:/var/www/html redis: image: redis:3.0-alpine + volumes: + - ./redis/data:/data db: image: mysql:8.0.33 command: --default-authentication-plugin=mysql_native_password diff --git a/redis/.gitignore b/redis/.gitignore new file mode 100644 index 0000000..adbb97d --- /dev/null +++ b/redis/.gitignore @@ -0,0 +1 @@ +data/ \ No newline at end of file