Exclude sites configuration from image and just use volume

This commit is contained in:
Dmitry Pupinin 2016-11-16 15:58:42 +07:00
parent 380178e6fa
commit d703c82c46
3 changed files with 3 additions and 1 deletions

View File

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

View File

@ -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
nginx/sites/.gitignore vendored Normal file
View File

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