remove containers names from docker-compose
to void conflict while scalling using the scale command
This commit is contained in:
parent
fdaa983e77
commit
5190da831a
|
@ -226,7 +226,7 @@ docker-compose stop
|
||||||
|
|
||||||
To stop single container do:
|
To stop single container do:
|
||||||
|
|
||||||
```php
|
```bash
|
||||||
docker-compose stop {container-name}
|
docker-compose stop {container-name}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,6 @@ services:
|
||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
build: ./nginx
|
build: ./nginx
|
||||||
container_name: nginx
|
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- php
|
- php
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -19,7 +18,6 @@ services:
|
||||||
|
|
||||||
php:
|
php:
|
||||||
build: ./php
|
build: ./php
|
||||||
container_name: php
|
|
||||||
volumes:
|
volumes:
|
||||||
- ../:/var/www/laravel
|
- ../:/var/www/laravel
|
||||||
- ./logs/php/:/usr/local/var/log
|
- ./logs/php/:/usr/local/var/log
|
||||||
|
@ -30,7 +28,6 @@ services:
|
||||||
|
|
||||||
data:
|
data:
|
||||||
build: ./data
|
build: ./data
|
||||||
container_name: data
|
|
||||||
volumes:
|
volumes:
|
||||||
- /var/lib/mysql
|
- /var/lib/mysql
|
||||||
- /var/lib/postgresql/data
|
- /var/lib/postgresql/data
|
||||||
|
@ -40,7 +37,6 @@ services:
|
||||||
|
|
||||||
mysql:
|
mysql:
|
||||||
build: ./mysql
|
build: ./mysql
|
||||||
container_name: mysql
|
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- data
|
- data
|
||||||
ports:
|
ports:
|
||||||
|
@ -57,7 +53,6 @@ services:
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
build: ./postgres
|
build: ./postgres
|
||||||
container_name: postgres
|
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- data
|
- data
|
||||||
ports:
|
ports:
|
||||||
|
@ -73,7 +68,6 @@ services:
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
build: ./redis
|
build: ./redis
|
||||||
container_name: redis
|
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- data
|
- data
|
||||||
ports:
|
ports:
|
||||||
|
|
Loading…
Reference in New Issue