docker-compose编排技术搭建solo个人博客
docker-compose.yml文件如下
version: "2"
services:
mysql:
container_name: mysql_5.7
image: mysql:5.7
restart: always
ports:
- "6603:3306"
volumes:
- ./mysql/data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: "xxxxxxx"
command: --max_allowed_packet=32505856
solo:
container_name: solo
image: b3log/solo:latest
restart: always
ports:
- "8080:80"
environment:
RUNTIME_DB: "MYSQL"
JDBC_USERNAME: "root"
JDBC_PASSWORD: "xxxxxxx"
JDBC_DRIVER: "com.mysql.cj.jdbc.Driver"
JDBC_URL: "jdbc:mysql://mysql:3306/solo?useUnicode=yes&characterEncoding=UTF-8&useSSL=false&serverTimezone=UTC"
command: --listen_port=80 --server_scheme=https --server_host=www.mmll.site
使用docker-compose up -d 启动即可
标题:docker-compose编排技术搭建solo个人博客
作者:badx16
地址:https://mmll.site/articles/2024/03/13/1710260634249.html