CodeIgniter4 版本 4.1.4
https://github.com/codeigniter4/framework
https://codeigniter.com/user_guide/index.html
OS Alpine 3.14
PHP7
mysql
nodejs npm
gulp
phpMyAdmin
0.下載
git clone git@github.com:gwolf0719/CodeIgniter4_Docker_php_mysql.git
1.封裝
docker build -t www .
2.啟動
docker run -d --name www -p 80:80 -p 3306:3306 -v $PWD:/web -v $PWD/mysqlfile:/var/lib/mysql www
移除 .gitgnore 內容
www 網站檔案路徑
mysqlfile 資料庫路徑
轉換到新的 git 倉庫
git remote set-url origin https://github.com/USERNAME/OTHERREPOSITORY.git
設定位置在 file/start.sh 中的
MYSQL_ROOT_PWD="dev"
MYSQL_USER_DB="dev"