If you want running project manually, please read here
-
Before installing project make sure the following prerequisites have been met.
-
We’ll download the code from its repository on GitHub.
-
By this point we’ll have all the project pieces in place.
-
PHPMyadmin [
Optional
]Manage database with phpmyadmin
For now, this project has been mainly created for Unix (Linux/MacOS)
. Perhaps it could work on Windows.
All requisites should be available for your distribution. The most important are :
Check if docker-compose
is already installed by entering the following command :
which docker-compose
Check Docker Compose compatibility :
The following is optional but makes life more enjoyable :
which make
On Ubuntu and Debian these are available in the meta-package build-essential. On other distributions, you may need to install the GNU C++ compiler separately.
sudo apt install build-essential
You should be careful when installing third party web servers such as MariaDB or Nginx.
This project use the following ports :
Server | Port |
---|---|
MySQL | 33060 |
PHPMyAdmin | 8999 |
Nginx | 8880 |
To install Git, download it and install following the instructions :
git clone https://github.com/vuhuyhien/cslp.git
Go to the project directory :
cd cslp
-
Create the docker environment file :
cp .env.docker .env
-
Init project and seeding data :
sudo docker-compose up laravel_init
You should taking a coffee, composer is very slow...
-
Running laravel :
sudo docker-compose up -d web
Please wait this might take a several minutes
-
Open your favorite browser :
-
Admin account :
- login url: {APP_URL}/admin
- email: cslp.manager@gmail.com
- password : secret
- password gmail: 123456Aa@
-
Stop and clear services :
sudo docker-compose down -v
-
Start container:
sudp docker-compose up -d phpmyadmin
-
Login:
- host: ${MYSQL_HOST} (defined in .env)
- user: ${MYSQL_USER} (defined in .env)
- pass: ${MYSQL_PASSWORD} (defined in .env)