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