Skip to content

Commit 5190da8

Browse files
committed
remove containers names from docker-compose
to void conflict while scalling using the scale command
1 parent fdaa983 commit 5190da8

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ docker-compose stop
226226

227227
To stop single container do:
228228

229-
```php
229+
```bash
230230
docker-compose stop {container-name}
231231
```
232232

docker-compose.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ services:
55

66
nginx:
77
build: ./nginx
8-
container_name: nginx
98
volumes_from:
109
- php
1110
volumes:
@@ -19,7 +18,6 @@ services:
1918

2019
php:
2120
build: ./php
22-
container_name: php
2321
volumes:
2422
- ../:/var/www/laravel
2523
- ./logs/php/:/usr/local/var/log
@@ -30,7 +28,6 @@ services:
3028

3129
data:
3230
build: ./data
33-
container_name: data
3431
volumes:
3532
- /var/lib/mysql
3633
- /var/lib/postgresql/data
@@ -40,7 +37,6 @@ services:
4037

4138
mysql:
4239
build: ./mysql
43-
container_name: mysql
4440
volumes_from:
4541
- data
4642
ports:
@@ -57,7 +53,6 @@ services:
5753

5854
postgres:
5955
build: ./postgres
60-
container_name: postgres
6156
volumes_from:
6257
- data
6358
ports:
@@ -73,7 +68,6 @@ services:
7368

7469
redis:
7570
build: ./redis
76-
container_name: redis
7771
volumes_from:
7872
- data
7973
ports:

0 commit comments

Comments
 (0)