Templating README

This commit is contained in:
briantanseng 2025-08-22 08:28:05 +00:00 committed by github-actions[bot]
parent acab57c5fd
commit e89e47968d
2 changed files with 14 additions and 30 deletions

View File

@ -16,7 +16,7 @@
* **公有云**: AWS, Azure, Google Cloud, 阿里云, 腾讯云, 华为云等20多个全球主流云
* **私有云**: KVM, VMware, VirtualBox, OpenStack 等主流虚拟化架构
* **CPU架构**: Linux x86-64, ARM 32/64, Windows x86-64, IBM POWER8, x86/i686
* **内存**: 4GB以上
* **内存**: 8GB以上
* **CPU**: 2核以上
* **存储**: 20GB以上
* **Swap分区**: 2GB以上
@ -57,10 +57,11 @@ sudo bash install-erpnext
```
curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh
curl -L "https://github.com/docker/compose/releases/download/v2.1.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
ln -sf /usr/local/bin/docker-compose /usr/bin
sudo systemctl enable docker
sudo systemctl start docker
alias docker-compose='docker compose'
echo "alias docker-compose='docker compose'" >> /etc/profile.d/docker-compose.sh
source /etc/profile.d/docker-compose.sh
```
#### 安装 ERPNext
@ -72,7 +73,8 @@ git clone --depth=1 https://github.com/Websoft9/docker-erpnext
cd docker-erpnext
public_ip=`wget -O - https://download.websoft9.com/ansible/get_ip.sh | bash`
sudo sed -i s/erp.example.com/$public_ip/g ./.env
sudo docker-compose up -d
sudo docker network create websoft9
sudo docker compose up -d
```
### 常见问题
@ -85,10 +87,6 @@ sudo docker-compose up -d
修改 [docker-compose](docker-compose.yml) 文件中冲突的端口,然后再启动容器
#### 为什么ERPNext端口用8000这违反了compose文件的编码规范
因为使用9001或其他端口将会导致部分容器发生错误导致应用无法正常访问
#### 默认启动的ERPNext是v12我想运行其他版本该如何操作
如果您想运行ERPNext13,只需将ERPNEXT_VERSION、FRAPPE_VERSION修改成v13修改前需要删除volumes文件夹
### 使用说明
启动应用后,本地浏览器访问 URL: *`http://服务器公网IP:端口`* 进入应用。
@ -103,12 +101,6 @@ sudo docker-compose up -d
| ------- | -------- |
| Administrator | admin |
#### 服务和端口
| 名称 | 端口号 | 用途 | 必要性 |
| --- | --- | --- | --- |
| erpnext | 8000 | 浏览器访问 ERPNext | Y |
| mariadb | 3306 | TCP 访问MariaDB数据库 | Y |
## 文档
[ERPNext 管理员手册](https://support.websoft9.com/docs/erpnext)

View File

@ -16,7 +16,7 @@ The following are the minimal [recommended requirements](https://github.com/frap
* **Public Cloud**: More than 20+ major Cloud such as AWS, Azure, Google Cloud, Alibaba Cloud, HUAWEIClOUD, Tencent Cloud
* **Private Cloud**: KVM, VMware, VirtualBox, OpenStack
* **ARCH**: Linux x86-64, ARM 32/64, Windows x86-64, IBM POWER8, x86/i686
* **RAM**: 4 GB or more
* **RAM**: 8 GB or more
* **CPU**: 2 cores or higher
* **HDD**: at least 20 GB of free space
* **Swap file**: at least 2 GB
@ -53,10 +53,11 @@ If you have not install Docker and Docker-Compose, refer to the following comman
```
curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh
curl -L "https://github.com/docker/compose/releases/download/v2.1.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
ln -sf /usr/local/bin/docker-compose /usr/bin
sudo systemctl enable docker
sudo systemctl start docker
alias docker-compose='docker compose'
echo "alias docker-compose='docker compose'" >> /etc/profile.d/docker-compose.sh
source /etc/profile.d/docker-compose.sh
```
#### Install ERPNext
@ -68,7 +69,8 @@ git clone --depth=1 https://github.com/Websoft9/docker-erpnext
cd docker-erpnext
public_ip=`wget -O - https://download.websoft9.com/ansible/get_ip.sh | bash`
sudo sed -i s/erp.example.com/$public_ip/g ./.env
docker-compose up -d
docker network create websoft9
docker compose up -d
```
### FAQ
@ -79,10 +81,6 @@ Yes, you should modify all database password and application password at docker-
#### Docker runing failed for the reason that port conflict?
You should modify ports at [docker-compose file](docker-compose-production.yml) and docker-compose again
#### Why does the erptext port use 8000, which violates the encoding specification of the compose file?
The use of 9001 or other ports will lead to errors in some containers and make the application unable to access normally
#### The default startup is erpnext12, What should I do if I want to run another version?
If you want to run erpnext13, you only need to change ERPNEXT_VERSION/FRAPPE_VERSIO to V13;Please delete volumes before edit configure
### Usage instructions
You can point your browser to: *`http://Instance's Internet IP:port`*
@ -97,12 +95,6 @@ By default, the available users are:
| ------- | -------- |
| Administrator | admin |
#### Services and Ports
| Service | Port | Use | Necessity |
| --- | --- | --- | --- |
| erpnext | 8000 | Browser access to ERPNext by http | Y |
| mariadb | 3306 | Accessing MySQL database with TCP | Y |
## Documentation
[ERPNext Administrator Guide](https://support.websoft9.com/docs/erpnext)