Skip to content

Commit 33d8f5d

Browse files
authored
Update README.md
1 parent ca1c6f2 commit 33d8f5d

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,28 @@
66
composer require --dev blamebutton/laravel-docker-builder
77
```
88

9+
## Configuration
10+
11+
Two environment variables need to be set:
12+
13+
* `DOCKER_NGINX_TAG`
14+
* `DOCKER_PHP_TAG`
15+
16+
This can be done either by adding them to your `.env` file or passing them to the build command.
17+
18+
### Option 1: `.env`
19+
20+
```
21+
DOCKER_NGINX_TAG=laravel-app:nginx
22+
DOCKER_PHP_TAG=laravel-app:php
23+
```
24+
25+
### Option 2: CLI
26+
27+
```shell
28+
DOCKER_NGINX_TAG=laravel-app:nginx DOCKER_PHP_TAG=laravel-app:php vendor/bin/docker-build
29+
```
30+
931
## Usage
1032

1133
Set the `DOCKER_NGINX_TAG` and `DOCKER_PHP_TAG` environment variables and run:

0 commit comments

Comments
 (0)