提交 2d94522b 编写于 作者: 小傅哥's avatar 小傅哥

小傅哥,feat:maven 工程脚手架

上级 f6555d4f
......@@ -65,6 +65,7 @@ services:
- 8081:8081
environment:
- REDIS_HOSTS=local:redis:6379
# - REDIS_HOSTS=local:admin:admin@redis:6379 # redis 配置 users.acl 账密则启动此配置,注释掉上一个配置【不使用密码的方式】。
- HTTP_USER=admin
- HTTP_PASSWORD=admin
networks:
......@@ -83,6 +84,7 @@ services:
- 6379:6379
volumes:
- ./redis/redis.conf:/usr/local/etc/redis/redis.conf
# - ./redis/users.acl:/usr/local/etc/redis/users.acl
command: redis-server /usr/local/etc/redis/redis.conf
networks:
- my-network
......
bind 0.0.0.0
port 6379
\ No newline at end of file
port 6379
aclfile /usr/local/etc/redis/users.acl
\ No newline at end of file
user admin on >admin allcommands allkeys
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册