From f59db4915f8bd1d255229ac21c971e554490a0d3 Mon Sep 17 00:00:00 2001 From: Atul Varma Date: Thu, 17 Sep 2015 13:42:19 -0400 Subject: [PATCH] Fix ambiguous docker volume warnings. Here's an example warning this suppresses: > Warning: the mapping "conf/:/etc/nginx/conf.d/" in the volumes > config for service "web" is ambiguous. In a future version of Docker, > it will designate a "named" volume (see > https://github.com/docker/docker/pull/14242). To prevent unexpected > behaviour, change it to "./conf/:/etc/nginx/conf.d/" This warning appears on Docker 1.8.2. --- docker-compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 5e7541f..3ac5adf 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,7 +6,7 @@ app: #- redis volumes: - .:/noi - - migrations:/migrations + - ./migrations:/migrations environment: - NOI_ENVIRONMENT # unless production, assumed "development" db: @@ -14,7 +14,7 @@ db: web: image: nginx volumes: - - conf/:/etc/nginx/conf.d/ + - ./conf/:/etc/nginx/conf.d/ - ./app/static:/noi/app/static - .keys:/etc/ssl/certs links: