1 Star 0 Fork 0

古月/bonfire-backend

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
docker-compose.yml 1.79 KB
一键复制 编辑 原始数据 按行查看 历史
古月 提交于 2023-07-11 14:14 +08:00 . update
version: "3"
services:
bonfire_server:
image: bonfire:4.0
container_name: bonfire_server
restart: on-failure:3
depends_on:
- bonfire_mysql
- bonfire_redis
networks:
bonfire_network:
volumes:
- ./images/:/app/images/
ports:
- "8088:8088"
environment:
- SERVER_PORT=8088
- SPRING_DATASOURCE_DRIVER_CLASS_NAME=com.mysql.cj.jdbc.Driver
- SPRING_DATASOURCE_URL=jdbc:mysql://bonfire_mysql:3306/star_project?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
- SPRING_DATASOURCE_USERNAME=root
# mysql password
- SPRING_DATASOURCE_PASSWORD=password
- SPRING_REDIS_PORT=6379
- SPRING_REDIS_DATABASE=0
- SPRING_REDIS_HOST=bonfire_redis
# redis password
- SPRING_REDIS_PASSWORD=password
bonfire_mysql:
image: mysql:8.0.28
container_name: bonfire_mysql
restart: on-failure:3
networks:
bonfire_network:
command: --default-authentication-plugin=mysql_native_password
--character-set-server=utf8mb4
--collation-server=utf8mb4_general_ci
--explicit_defaults_for_timestamp=true
volumes:
- /etc/localtime:/etc/localtime:ro
- ./mysql:/var/lib/mysql
- ./mysqlBackup:/data/mysqlBackup
ports:
- "3306:3306"
environment:
# mysql password 和上面的一致
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=star_project
bonfire_redis:
image: redis
container_name: bonfire_redis
restart: on-failure:3
networks:
bonfire_network:
volumes:
- ./redis/data:/data
- ./redis/logs:/logs
# redis password 和上面一致
command: redis-server --requirepass password
ports:
- "6379:6379"
networks:
bonfire_network:
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xiaohugitee/bonfire-backend.git
git@gitee.com:xiaohugitee/bonfire-backend.git
xiaohugitee
bonfire-backend
bonfire-backend
main

搜索帮助