Browse Source

Exclude sites configuration from image and just use volume

Dmitry Pupinin 8 years ago
parent
commit
d703c82c46
3 changed files with 3 additions and 1 deletions
  1. 1 0
      docker-compose.yml
  2. 0 1
      nginx/Dockerfile
  3. 2 0
      nginx/sites/.gitignore

+ 1 - 0
docker-compose.yml

@@ -75,6 +75,7 @@ services:
             - applications
         volumes:
             - ./logs/nginx/:/var/log/nginx
+            - ./nginx/sites/:/etc/nginx/sites-available
         ports:
             - "80:80"
             - "443:443"

+ 0 - 1
nginx/Dockerfile

@@ -3,7 +3,6 @@ FROM nginx:alpine
 MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
 
 ADD nginx.conf /etc/nginx/
-COPY sites/*.conf /etc/nginx/sites-available/
 
 ARG PHP_UPSTREAM=php-fpm
 

+ 2 - 0
nginx/sites/.gitignore

@@ -0,0 +1,2 @@
+*.conf
+!default.conf