--- fenglin/README.md 2026/01/22 12:57:38 1.17 +++ fenglin/README.md 2026/01/23 12:08:09 1.18 @@ -18,8 +18,6 @@ Chinese version: [README.zh_CN.md](READM - [Build from Source](#build-from-source) - [Using Pre-built Images](#using-pre-built-images) - [Configuration for Docker](#configuration-for-docker) - - [Docker Compose Services](#docker-compose-services) - - [Common Docker Commands](#common-docker-commands) - [Persistent Data](#persistent-data) - [Copyright Information](#copyright-information) - [License](#license) @@ -48,7 +46,7 @@ Chinese version: [README.zh_CN.md](READM ### 1. Prerequisites and Required Libraries - **PHP 8.2+** and **MySQL 8.4+** installed -- Install Composer using your package manager (e.g., `apt`, `yum`, or from [getcomposer.org](https://getcomposer.org/)) +- Install Composer using your package manager (e.g., `apt`, `yum`) - Run the following command in the project root directory: ```bash composer install --prefer-dist --no-scripts --no-progress @@ -134,26 +132,6 @@ docker compose up -d - Edit the configuration files as needed - Restart the container: `docker compose restart` -### Docker Compose Services -- **web**: Apache HTTP Server with PHP 8.2 -- **db**: MySQL 8.4 database -- **phpmyadmin**: Database management interface (optional, available at `http://localhost:8081`) - -### Common Docker Commands -```bash -# View logs -docker compose logs -f - -# Stop containers -docker compose down - -# Rebuild and restart -docker compose up --build -d - -# Access container shell -docker compose exec web bash -``` - ### Persistent Data - Database data is stored in a Docker volume (`leafok_bbs_db_data`) - Uploaded files and cache are stored in mounted host directories