SAAS based ERP.
- Install dependencies:
composer install - Start containers:
cd erp/docker,docker-compose up -d - Run migrations:
php application/lumen/artisan migrate:install,php application/lumen/artisan migrate - Command to start up docker with cache
docker-compose down && docker-compose build && docker-compose up -d && docker logs webserver - Command to start up docker without cache
docker-compose down && docker-compose build --no-cache && docker-compose up -d && docker logs webserver
- Database used is PostgresSQL
- Uses CircleCI as the default CI platform
- Application is available on either https://localhost or https://saas-erp.local [https redirection automatically takes place.]
Note: you need to cd first to where your docker-compose.yml file lives.
- Start containers in the background:
docker-compose up -d - Start containers on the foreground:
docker-compose up. You will see a stream of logs for every container running. - Stop containers:
docker-compose stop - Kill containers:
docker-compose kill - View container logs:
docker-compose logs - Execute command inside of container:
docker-compose exec SERVICE_NAME COMMANDwhereCOMMANDis whatever you want to run. Examples: - Shell into the PHP container:
docker exec -it app /bin/bash - Shell into the Webserver container:
docker exec -it webserver /bin/sh - Open a mysql shell,
docker-compose exec mysql mysql -uroot -pCHOSEN_ROOT_PASSWORD
- Generate Swagger documentation
php application/lumen/artisan swagger-lume:publish
Service | Address outside containers