代码拉取完成,页面将自动刷新
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。