@@ -27,31 +27,43 @@ To install, you need to install docker locally.
2727* [ Docker Compose] ( https://docs.docker.com/compose/ )
2828* [ Docker Machine] ( https://docs.docker.com/machine/ ) (Mac and Windows only)
2929
30+ ### Before start work
31+
32+ To run the docker commands without using ** sudo** you must add the ** docker** group to ** your-user** :
33+
34+ ``` bash
35+ sudo usermod -aG docker your-user
36+ ```
37+
38+ For now, this project has been mainly created for Unix ` (Linux/MacOS) ` . Perhaps it could work on Windows.
39+
3040### How start work
3141
3242Clone current project:
3343``` bash
3444git clone https://github.com/krepysh-spec/lamp-docker-php-skeleton.git && cd lamp-docker-php-skeleton
3545````
46+
3647Create .env file from .env_example:
3748` ` ` bash
3849cp .env_example .env
3950` ` ` `
40- Fill configuration in .env file
41-
42- To run the docker commands without using ** sudo** you must add the ** docker** group to ** your-user** :
43-
51+ or
4452` ` ` bash
45- sudo usermod -aG docker your-user
46- ```
53+ make init
54+ ````
4755
48- For now, this project has been mainly created for Unix ` (Linux/MacOS) ` . Perhaps it could work on Windows.
56+ Fill configuration in .env file
4957
58+ Run bottom command for install application
5059` ` ` bash
51- docker-compose build && docker-compose up
60+ make install
5261` ` `
5362
54- After open in browser [ localhost] ( http://127.0.0.1/ )
63+ If you not change *** NGINX_HOST*** and *** NGINX_PORT*** in *** .env*** open in browser [localhost](http://127.0.0.1/)
64+
65+ And you should see something like:
66+ ! [Alt Text](docs/media/result.png)
5567
5668# ## Makefile
5769This file helps to quickly interact with the work of docker and additional features.
@@ -62,6 +74,14 @@ usage: make COMMAND
6274Commands:
6375 init Init skeleton settings
6476 help List of all commands in make file
77+ install Install application
78+ add-host Add nginx host to /etc/hosts file
79+ bash Exec backend container
80+ build Build docker-compose
81+ build-no-cache Build docker-compose without cache
82+ up Up with demon docker containers
83+ down Down docker containers
84+ stop Stop docker containers
6585 clear-all-logs Clear all logs in folder /logs
6686 clear-logs-in folder=[ FOLDER] Clear logs in folder
6787 watch-log logFilePath=[ PATH TO LOG FILE] Watch log file
@@ -74,8 +94,6 @@ Commands:
7494├── docker - [ Docker settings]
7595│ ├── backend
7696│ │ ├── Dockerfile
77- │ │ ├── cron
78- │ │ │ └── crontab
7997│ │ ├── php
8098│ │ │ └── conf.d
8199│ │ │ ├── php.ini
@@ -94,6 +112,14 @@ Commands:
94112└── src - [ Your workspace]
95113```
96114
115+ ### More documentation
116+ You can also read more information about the project
117+
118+ | Doc | README |
119+ |----------------------------|--------------------------------------------|
120+ | xDebug configuration | [docs/xdebug.md](docs/xdebug.md) |
121+ | Code sniffer configuration | [docs/codesniffer.md](docs/codesniffer.md) |
122+
97123### Support
98124
99125For support, email evgeniymykhalichenko@gmail.com or telegram @krep1sh
0 commit comments