Files
localdocker/redis/docker-compose.yml
T
macrocc 44f2310af1 feat(docker): 添加 Docker 配置文件和 Git 忽略规则
- 添加 .gitignore 文件以忽略 Docker 数据目录和日志文件
- 创建 MySQL Docker Compose 配置文件
- 创建 Nginx Docker Compose 配置文件
- 创建 Redis Docker Compose 配置文件
- 配置 MySQL 容器环境变量和数据卷
- 配置 Nginx 容器端口映射和配置卷
- 配置 Redis 容器持久化设置
2026-04-19 00:30:24 +08:00

12 lines
195 B
YAML

version: '3.8'
services:
redis:
image: redis:7-alpine
container_name: redis
command: redis-server --appendonly yes
ports:
- "6379:6379"
volumes:
- ./data:/data