1 Star 0 Fork 426

mrliuyin1204/MineAdmin

forked from MineAdmin/MineAdmin 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-compose.yml 2.03 KB
一键复制 编辑 原始数据 按行查看 历史
Death-Satan 提交于 2024-03-03 02:51 . Fixed test
version: '3'
services:
# 首先下载前端,https://gitee.com/mineadmin/mineadmin-vue
# 在后端根目录建立mine-ui目录,把前端文件复制过来。
# 容器内访问宿主机的地址用:host.docker.internal
# 宿主机也可以在hosts文件添加:127.0.0.1 host.docker.internal
# mine-ui的.env.development文件127.0.0.1替换为host.docker.internal
nginx-frontend:
container_name: mine-nginx
image: nginx:latest
environment:
- "TIMEZONE=Asia/Shanghai"
ports:
- 8101:80
volumes:
- ./mine-ui/dist:/usr/share/nginx/html
- ./docker/nginx-frontend/servers:/etc/nginx/conf.d
# mineadmin的.env的mysql、redis如果连接到宿主机,地址用:host.docker.internal
# 如果是连接到docker内服务,则用服务名称,如:redis
hyperf:
container_name: mine-admin
image: hyperf/hyperf:8.1-alpine-v3.18-swoole
restart: always
environment:
- "TIMEZONE=Asia/Shanghai"
- "APP_PROJECT=hyperf"
- "APP_SYSTEM_ENV=docker"
working_dir: "/opt/www"
ports:
- 9501:9501
- 9502:9502
- 9503:9503
volumes:
- ./:/opt/www
entrypoint: ["php", "watch", "-c"]
# 没有将volumes映射出来,需要持久化自行百度一下
mysql:
container_name: mine-mysql
environment:
- "TZ=Asia/Shanghai"
- MYSQL_ROOT_PASSWORD=12345678
- "explicit_defaults_for_timestamp=true"
- "lower_case_table_names=1"
image: mysql:5.7
restart: always
# command: "--default-authentication-plugin=mysql_native_password"
pgsql:
container_name: mine-pgsql
image: postgres:14
environment:
- POSTGRES_PASSWORD=postgres
restart: always
redis:
image: redis
container_name: mine-redis
restart: always
rabbitmq:
image: rabbitmq:management
container_name: mine-rabbitmq
restart: always
ports:
- "4369:4369"
- "5672:5672"
- "15672:15672"
- "25672:25672"
environment:
- RABBITMQ_DEFAULT_USER=mineadmin
- RABBITMQ_DEFAULT_PASS=123456
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/mrliuyin1204/mineadmin.git
git@gitee.com:mrliuyin1204/mineadmin.git
mrliuyin1204
mineadmin
MineAdmin
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385