Skip to content

Commit 9a1903f

Browse files
author
Vincent Composieux
committed
Update documentation
1 parent 25791e5 commit 9a1903f

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

README.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,26 @@ $ git clone git@github.com:eko/docker-symfony.git
1313

1414
Next, put your Symfony application into `symfony` folder and do not forget to add `symfony.dev` in your `/etc/hosts` file.
1515

16-
Now, you have to build your Docker images:
16+
Then, run:
1717

1818
```bash
19-
$ docker build -t symfony/code code
20-
$ docker build -t symfony/php-fpm php-fpm
21-
$ docker build -t symfony/nginx nginx
19+
$ docker-compose up
2220
```
2321

24-
Then, run:
22+
You are done, you can visite your Symfony application on the following URL: `http://symfony.dev` (and access Kibana on `http://symfony.dev:81`)
23+
24+
Optionally, you can build your Docker images separately by running:
2525

2626
```bash
27-
$ docker-compose up
27+
$ docker build -t symfony/code code
28+
$ docker build -t symfony/php-fpm php-fpm
29+
$ docker build -t symfony/nginx nginx
2830
```
2931

30-
You are done, you can visit your Symfony application in `http://symfony.dev`
31-
3232
# How it works?
3333

34+
Here are the `docker-compose` built images:
35+
3436
* `application`: This is the Symfony application code container,
3537
* `db`: This is the MySQL database container (can be changed to postgresql or whatever in `docker-compose.yml` file),
3638
* `php`: This is the PHP-FPM container in which the application volume is mounted,

0 commit comments

Comments
 (0)