代码拉取完成,页面将自动刷新
version: '3.3'
services:
blog-mysql:
image: mysql:8.0.26
network_mode: "host"
container_name: blog-mysql
restart: always
ports:
- "3306:3306"
environment:
TZ: Asia/Shanghai
MYSQL_ROOT_PASSWORD: blog
MYSQL_DATABASE: blog
volumes:
- ./mysql:/var/lib/mysql
- ./mysql-conf:/etc/mysql/conf.d
blog-client:
build: ./Client
command: npx nodemon -w dist ./client.js
network_mode: "host"
ports:
- "5173:5173"
restart: always
volumes:
- ./Client:/app
container_name: blog-client
depends_on:
- blog-service
blog-service:
build: ./Serrver
command: python app.py --log-level=DEBUG
network_mode: "host"
volumes:
- ./Server:/app/Server
ports:
- "3000:3000"
restart: always
container_name: blog-service
environment:
- MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin
- MYSQL_DATABASE=blog
- MYAQL_PASSWORD=blog
depends_on:
- blog-minio
- blog-mysql
blog-minio:
image: minio/minio
network_mode: "host"
container_name: blog-minio
ports:
- 9000:9000
- 9001:9001
environment:
TZ: Asia/Shanghai
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
volumes:
- ./minio:/data
restart: always
command: server /data --console-address ":9001"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。