多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
**redis** ``` version: "3.1" services: redis: image: redis:4 environment: TZ: Asia/Shanghai ports: - 6379:6379 command: ["redis-server","/etc/redis/redis.conf"] restart: always volumes: - ./conf:/etc/redis/ - ./data:/data ``` reids.conf ``` bind 0.0.0.0 port 6379 tcp-backlog 511 timeout 0 tcp-keepalive 0 #loglevel notice #logfile "/redis/logs/redis.log" databases 16 #requirepass liubei@2021 ``` 测试 ``` docker exec -it 6d784c652a20 redis-cli set lingdu hello-redis get lingdu ```