yuebin's blog

Quick Deployment Guide with Docker Compose

Quick Deployment Guide with Docker Compose

This guide explains how to quickly deploy Xboard using Docker Compose. By default, it uses SQLite database, eliminating the need for a separate MySQL installation.

1. Environment Preparation

Install Docker:

curl -sSL https://get.docker.com | bash

# For CentOS systems, also run:
systemctl enable docker
systemctl start docker

2. Deployment Steps

  1. Get project files:
git clone -b compose --depth 1 https://github.com/cedar2025/Xboard
cd Xboard
  1. Install database:
  • Quick installation (Recommended for beginners)
docker compose run -it --rm \
    -e ENABLE_SQLITE=true \
    -e ENABLE_REDIS=true \
    -e ADMIN_ACCOUNT=yuebinliu@gmail.com \
    web php artisan xboard:install
  • Custom configuration installation (Advanced users)
docker compose run -it --rm web php artisan xboard:install

Please save the admin dashboard URL, username, and password shown after installation

  1. Start services:
docker compose up -d
  1. Access the site:

3. Version Updates

💡 Important Note: Update commands may vary depending on your installed version:

  • For recent installations (new version), use:
cd Xboard
docker compose pull && \
docker compose run -it --rm web php artisan xboard:update && \
docker compose up -d
  • For older installations, replace web with xboard:
cd Xboard
docker compose pull && \
docker compose run -it --rm xboard php artisan xboard:update && \
docker compose up -d

🤔 Not sure which to use? Try the new version command first, if it fails, use the old version command.

4. Version Rollback

  1. Modify the version number in docker-compose.yaml to the version you want to roll back to
  2. Execute: docker compose up -d

Important Notes

  • If you need to use MySQL, please install it separately and redeploy
  • Code changes require service restart to take effect
  • You can configure Nginx reverse proxy to use port 80

After install
默认插件安装完成
🎉:一切就绪
管理员邮箱:yuebinliu@gmail.com
管理员密码:114465c05941fab0f1c412cd3b339921
访问 http(s)://你的站点/25fc7cee 进入管理面板,你可以在用户中心修改你的密码。

管理面板:
http://45.77.6.57:7001/25fc7cee

http://45.77.6.57:7001/#/dashboard