Skip to content

Commit b8889dc

Browse files
leroy0211maxpou
authored andcommitted
Fixes maxpou#32, linking containers is obsolete in version 2 docker-compose (maxpou#35)
* Fixes maxpou#32, linking containers is obsolete when using version 2 of docker compose. A network will be created between the containers to find each other. * Changed README due to the named alias change
1 parent d4a7067 commit b8889dc

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Docker-symfony gives you everything you need for developing Symfony application.
4040
```yml
4141
# path/to/your/symfony-project/app/config/parameters.yml
4242
parameters:
43-
database_host: mysqldb
43+
database_host: db
4444
```
4545

4646
2. Composer install & create database

docker-compose.yml

-4
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,13 @@ services:
1414
build: php7-fpm
1515
ports:
1616
- 9000:9000
17-
links:
18-
- db:mysqldb
1917
volumes:
2018
- ${SYMFONY_APP_PATH}:/var/www/symfony
2119
- ./logs/symfony:/var/www/symfony/app/logs
2220
nginx:
2321
build: nginx
2422
ports:
2523
- 80:80
26-
links:
27-
- php
2824
volumes_from:
2925
- php
3026
volumes:

0 commit comments

Comments
 (0)