File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -21,28 +21,31 @@ Includes local end production settings.
21
21
````
22
22
cp .env.example .env
23
23
````
24
- Set PROJECT_NAME variable.
25
- Set PROJECT_FOLDER variable for example ` backend` or whatever you want - by default it is main.
24
+ Set ` PROJECT_NAME` variable.
25
+ Set ` PROJECT_FOLDER` variable for example ' backend' or whatever you want - by default it is main.
26
26
3. **Configure main `docker-compose.yml` file**
27
27
````
28
28
cp docker-compose.yml.local docker-compose.yml
29
29
````
30
30
Set variables for mysql container. Docker will create database and user at first UP.
31
+ ````
31
32
MYSQL_ROOT_PASSWORD:
32
33
MYSQL_DATABASE: ${PROJECT_NAME}
33
34
MYSQL_USER: ${PROJECT_NAME}
34
35
MYSQL_PASSWORD:
35
- 4. **Configure App `.env`**
36
+ ````
37
+ 4. **Configure Application `.env`**
36
38
````
37
39
# By default ${PROJECT_FOLDER}=main
38
40
cp ${PROJECT_FOLDER}/.env.example cp ${PROJECT_FOLDER}/.env
39
41
````
40
42
Set variables from *step 3*
41
- DB_HOST=mysql
42
- DB_DATABASE=
43
- DB_USERNAME=
44
- DB_PASSWORD=
45
-
43
+ ````
44
+ DB_HOST=mysql
45
+ DB_DATABASE=
46
+ DB_USERNAME=
47
+ DB_PASSWORD=
48
+ ````
46
49
5. **Run Application**
47
50
````
48
51
docker-compose up -d --build
@@ -58,5 +61,5 @@ Includes local end production settings.
58
61
# Migrate
59
62
docker-compose exec -uwww-data php-fpm php artisan migrate
60
63
````
61
- 6. **Run http://localhost:8989/register**
64
+ 6. **Launch http://localhost:8989/register**
62
65
You can’t perform that action at this time.
0 commit comments