@@ -8,15 +8,13 @@ Docker-symfony gives you everything you need for developing Symfony application.
8
8
9
9
## Installation
10
10
11
- 1 . In the docker-compose file, indicate where's your Symfony project
11
+ 1 . Create a ` .env ` from the ` .env.dist ` file. Adapt it according to your symfony application
12
12
13
- ``` yml
14
- services :
15
- php :
16
- volumes :
17
- - path/to/your/symfony-project:/var/www/symfony
13
+ ``` bash
14
+ cp .env.dist .env
18
15
```
19
16
17
+
20
18
2. Build/run containers with (with and without detached mode)
21
19
22
20
` ` ` bash
@@ -29,35 +27,25 @@ Docker-symfony gives you everything you need for developing Symfony application.
29
27
30
28
` ` ` bash
31
29
# get containers IP address and update host (replace IP according to your configuration)
32
- $ docker inspect --format '{{ .NetworkSettings.IPAddress }}' $(docker ps -f name=nginx -q)
30
+ $ docker inspect --format ' {{ .NetworkSettings.Networks.dockersymfony_default. IPAddress }}' $( docker ps -f name=nginx -q)
33
31
# unix only (on Windows, edit C:\Windows\System32\drivers\etc\hosts)
34
32
$ sudo echo " 171.17.0.1 symfony.dev" >> /etc/hosts
35
33
` ` `
36
34
37
35
** Note:** If it' s empty, run `docker inspect $(docker ps -f name=nginx -q) | grep IPAddress` instead.
38
36
39
37
4. Prepare Symfony app
40
- 1. Retrieve DB&Redis IP
41
-
42
- ` ` ` bash
43
- $ docker inspect --format '{{ .NetworkSettings.Networks.dockersymfony_default.IPAddress }}' $(docker ps -f name=db -q)
44
- $ docker inspect --format '{{ .NetworkSettings.Networks.dockersymfony_default.IPAddress }}' $(docker ps -f name=redis -q)
45
- ` ` `
46
-
47
- **Note:** If it's empty, run `docker inspect $(docker ps -f name=db -q) | grep IPAddress` instead.
48
-
49
- 2. Update app/config/parameters.yml
38
+ 1. Update app/config/parameters.yml
50
39
51
40
```yml
52
41
# path/to/your/symfony-project/app/config/parameters.yml
53
42
parameters:
54
43
database_host: mysqldb
55
- database_password: root
56
44
#...
57
45
redis_host: redis
58
46
```
59
47
60
- 3 . Composer install & create database
48
+ 2 . Composer install & create database
61
49
62
50
```bash
63
51
$ docker-compose exec php bash
@@ -167,8 +155,3 @@ Run `docker-compose up -d` instead.
167
155
First of all, **thank you** for contributing ♥
168
156
If you find any typo/misconfiguration/... please send me a PR or open an issue. You can also ping me on [twitter](https://twitter.com/_maxpou).
169
157
Also, while creating your Pull Request on GitHub, please write a description which gives the context and/or explains why you are creating it.
170
-
171
-
172
- # # TODO
173
-
174
- - [ ] Upgrade ELK stack + install [Timelion](https://github.com/elastic/timelion) plugin <3
0 commit comments