lsat / yii2-msp-app
LSAT Yii2 MSP APP
1.0.0
2022-06-03 09:21 UTC
Requires
- ext-mbstring: *
- lsat/yii2-bower-asset: ~2.0.13
- lsat/yii2-microbase: ~2.0.0
This package is auto-updated.
Last update: 2024-12-22 14:45:59 UTC
README
Create docker volumes
vol_data
mkdir -p /lcs/storage/data
mkdir -p /lcs/storage/log
docker volume create --name lcs-storage-data --opt type=none --opt device=/lcs/storage/data --opt o=bind
docker volume create --name lcs-storage-log --opt type=none --opt device=/lcs/storage/log --opt o=bind
docker volume inspect lcs-storage-data
docker volume inspect lcs-storage-log
Create internal local network
docker network create -d bridge lcs-internal-service-network
App Structure
1. Auth Status Classification
+ M: Make //Khởi tạo
+ P: Pending //Chờ duyệt
+ R: Reject //Từ chối duyệt
+ A: Approved //Hoàn tất
2. Record Status Classification
+ C: Close //Đóng
+ O: Open //Mở
3. MicroService
- Command
start service
docker-compose up -d
Down service
docker-compose up down
Run command
docker-compose exec php yii command(vd : hello)
Run composer install
docker-compose exec php composer install
Run update library
docker-compose exec php composer require lsat/microbase
- Url Help
Check status MicroService
localhost:{SERVICE_PORT}/node/health-check
Generate model and crud
localhost:{SERVICE_PORT}/gii
3. Docker Config
Fix timeout database connection
Docker app -> Setting -> Docker Engine
Update config
{
"features": {
"buildkit": true
},
"bip": "10.254.1.1/24",
"default-address-pools": [
{
"base": "10.254.0.0/16",
"size": 28
}
],
"debug": true,
"experimental": true,
"builder": {
"gc": {
"defaultKeepStorage": "20GB",
"enabled": true
}
}
}
Update file yii run in git bash
vim yii -c "set ff=unix" -c ":wq"
Rollback file yii
vim yii -c "set ff=dos" -c ":wq"