Добавил к Redis Volumes.

This commit is contained in:
Leonid Nikitin 2024-06-11 22:42:58 +05:00
parent de69776bc8
commit af053b4d53
Signed by: kor-elf
GPG Key ID: 3C0F720C170F6E1D
4 changed files with 7 additions and 0 deletions

View File

@ -80,6 +80,8 @@ services:
redis: redis:
image: redis:3.0-alpine image: redis:3.0-alpine
# restart: always # restart: always
volumes:
- ./redis/data:/data
db: db:
image: docker.io/mysql:8.0.33 image: docker.io/mysql:8.0.33
command: --default-authentication-plugin=mysql_native_password command: --default-authentication-plugin=mysql_native_password

View File

@ -50,6 +50,8 @@ services:
redis: redis:
image: redis:3.0-alpine image: redis:3.0-alpine
# restart: always # restart: always
volumes:
- ./redis/data:/data
swagger: swagger:
image: swaggerapi/swagger-ui image: swaggerapi/swagger-ui
depends_on: depends_on:

View File

@ -62,6 +62,8 @@ services:
- ./app/application:/var/www/html - ./app/application:/var/www/html
redis: redis:
image: redis:3.0-alpine image: redis:3.0-alpine
volumes:
- ./redis/data:/data
db: db:
image: mysql:8.0.33 image: mysql:8.0.33
command: --default-authentication-plugin=mysql_native_password command: --default-authentication-plugin=mysql_native_password

1
redis/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
data/