sajjadnaqvi / docker-environment

Docker development environment using https://github.com/opendocks/o-template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OpenDock Template

The empty structure contains necessary folder and files to start building site based on project opendocks/o-dock.

How to use for project

git clone git@github.com:larabeans/o-template.git
  • Go to code directory using command
cd code
git clone git@github.com:larabeans/larabeans.git
  • Rename larabeans directory resulted from above command to api 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

Useful Commands

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

Workspace Commands

To Update all NPM packages in package.jon, (if npm-check-update is installed)

ncu -u

About

Docker development environment using https://github.com/opendocks/o-template


Languages

Language:Dockerfile 72.9%Language:Shell 24.8%Language:Batchfile 2.3%