From 5190da831a26688c18791f7a1924c3af12c70682 Mon Sep 17 00:00:00 2001 From: Mahmoud Zalt Date: Sun, 8 May 2016 13:39:43 +0300 Subject: [PATCH] remove containers names from docker-compose to void conflict while scalling using the scale command --- README.md | 2 +- docker-compose.yml | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/README.md b/README.md index 144b76aa..c7a29ee5 100644 --- a/README.md +++ b/README.md @@ -226,7 +226,7 @@ docker-compose stop To stop single container do: -```php +```bash docker-compose stop {container-name} ``` diff --git a/docker-compose.yml b/docker-compose.yml index e2eb14e2..cca43603 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,7 +5,6 @@ services: nginx: build: ./nginx - container_name: nginx volumes_from: - php volumes: @@ -19,7 +18,6 @@ services: php: build: ./php - container_name: php volumes: - ../:/var/www/laravel - ./logs/php/:/usr/local/var/log @@ -30,7 +28,6 @@ services: data: build: ./data - container_name: data volumes: - /var/lib/mysql - /var/lib/postgresql/data @@ -40,7 +37,6 @@ services: mysql: build: ./mysql - container_name: mysql volumes_from: - data ports: @@ -57,7 +53,6 @@ services: postgres: build: ./postgres - container_name: postgres volumes_from: - data ports: @@ -73,7 +68,6 @@ services: redis: build: ./redis - container_name: redis volumes_from: - data ports: