1 Star 0 Fork 0

千岛/WeChat

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
docker-compose.yml 1.32 KB
一键复制 编辑 原始数据 按行查看 历史
千岛 提交于 2022-06-03 20:43 . redis拦截ip:pencil2:
version: "3.9"
services:
#SpringBoot项目服务
wechat:
build: .
image: wechat
depends_on:
# - mysql
- redis
ports:
- "8090:8090"
restart: always
# networks:
# - test_network
# #mysql服务名字
# mysql:
# #使用的镜像
# image: mysql:8.0.29
# command: --default-authentication-plugin=mysql_native_password
# ports:
# - "3307:3306"
# environment:
# MYSQL_ROOT_HOST: '%'
# MYSQL_ROOT_PASSWORD: 'RAK8rfrSD2eJSBwNn'
# MYSQL_ALLOW_EMPTY_PASSWORD: 'no'
# MYSQL_DATABASE: 'wechat'
# MYSQL_USER: 'qiandao'
# MYSQL_PASSWORD: 'RAK8rfrSD2eJSBwN'
# #需要挂载的文件卷
# volumes:
# - /home/docker/composeWechat/mysql/data:/var/lib/mysql
# - /home/docker/composeWechat/mysql/log:/var/log/mysql
# - /home/docker/composeWechat/mysql/conf:/etc/mysql
# restart: always
## networks:
## - test_network
#redis服务
redis:
image: "library/redis:alpine"
container_name: redis_wechat
restart: always
# network_mode: host
command: redis-server --requirepass "sjxihfwji2980" --appendonly yes
ports:
- "6378:6379"
volumes:
- /home/docker/composeWechat/redis/data:/data
- /home/docker/composeWechat/redis/redis.conf:/etc/redis.conf
- /home/docker/composeWechat/redis/logs:/logs
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/notre/wechat.git
[email protected]:notre/wechat.git
notre
wechat
WeChat
master

搜索帮助