diff --git a/docker-compose.yml b/docker-compose.yml index 6d831a2..ea99996 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -18,12 +18,13 @@ services: # Nginx Service nginx: container_name: web - image: nginx:latest + build: + dockerfile: nginx-dockerfile + context: . links: - 'php' volumes: - 'webdata:/var/www/html' - - './nginx-conf:/etc/nginx/conf.d' depends_on: - php diff --git a/nginx-dockerfile b/nginx-dockerfile new file mode 100644 index 0000000..8526bef --- /dev/null +++ b/nginx-dockerfile @@ -0,0 +1,2 @@ + FROM nginx:latest + ADD nginx.conf /etc/nginx/conf.d/nginx.conf diff --git a/nginx-conf/nginx.conf b/nginx.conf similarity index 100% rename from nginx-conf/nginx.conf rename to nginx.conf