Deployment Guide
PieMDM is designed to be easily deployed using containerization technologies. We recommend using Docker Compose for production deployment.
Prerequisites
The deployment environment requires:
Deploy with Docker Compose
Get Code
Clone the project code to the server:
bashgit clone https://github.com/pieteams/piemdm.git cd piemdmConfiguration
Modify
docker-compose.yamlor related configuration files (such as database passwords, port mappings, etc.) according to your environment needs.Start Services
Run in the project root directory:
bashcd deploy docker-compose up -dThis command will build and start the application services (API, Web).
Verify
Use
docker-compose psto check service status.- Default Frontend Port:
80 - Default API Server Port:
8787
- Default Frontend Port:
Manual Build & Deploy
If you need to manually build binaries and static resources:
Backend
bash
cd api
make build
# Run the generated binary
./bin/serverFrontend
bash
cd web
pnpm install
pnpm build
# Build artifacts are located in the web/dist directory, ready for hosting with Nginx or other web servers