The empty structure contains necessary folder and files to start building site based on project opendocks/o-dock.
- Clone this repository using command based on opendocks/o-template
git clone git@github.com:larabeans/o-template.git
- Go to code directory using command
cd code
- Clone larabeans/larabeans project within
code
directory using command
git clone git@github.com:larabeans/larabeans.git
- Rename
larabeans
directory resulted from above command toapi
using below command
mv larabeans api
-
Create directory
mysql
within data directory -
Run host.bat file to add entries to windows host file
-
It is assumes you already setup proxy server, if not go to opendocks/o-proxy, and check setup process.
-
run
docker-compose up
, it will build images and will take time on first run
Docker compose useful commands
To build/start all services
docker-compose up
To build/start first time
docker-compose up apache php-fpm mysql
To build/rebuild explicitly
docker-compose up --build apache
Close all running Containers
docker-compose stop
To stop single container do:
docker-compose stop {container-name}
To stop and remove all containers:
docker-compose down
To stop and remove single containers:
docker-compose down {container-name}
To enter container terminal window
docker exec -it {container-name} bash
To Update all NPM packages in package.jon, (if npm-check-update is installed)
ncu -u