Selaa lähdekoodia

Merge pull request #434 from dlnsk/Fixes

Fixes for nginx and mysql
Philippe Trépanier 8 vuotta sitten
vanhempi
säilyke
a3288462a8
5 muutettua tiedostoa jossa 7 lisäystä ja 2 poistoa
  1. 1 0
      docker-compose.yml
  2. 1 1
      mysql/Dockerfile
  3. 3 0
      mysql/my.cnf
  4. 0 1
      nginx/Dockerfile
  5. 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"

+ 1 - 1
mysql/Dockerfile

@@ -1,4 +1,4 @@
-FROM mysql:5.6
+FROM mysql:5.7
 
 MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
 

+ 3 - 0
mysql/my.cnf

@@ -4,3 +4,6 @@
 # http://dev.mysql.com/doc/mysql/en/server-system-variables.html
 
 [mysql]
+
+[mysqld]
+sql-mode="STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"

+ 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