Skip to content

Commit a328846

Browse files
authored
Merge pull request laradock#434 from dlnsk/Fixes
Fixes for nginx and mysql
2 parents 225fb8c + 6bbd1fb commit a328846

5 files changed

Lines changed: 7 additions & 2 deletions

File tree

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ services:
7575
- applications
7676
volumes:
7777
- ./logs/nginx/:/var/log/nginx
78+
- ./nginx/sites/:/etc/nginx/sites-available
7879
ports:
7980
- "80:80"
8081
- "443:443"

mysql/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM mysql:5.6
1+
FROM mysql:5.7
22

33
MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
44

mysql/my.cnf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@
44
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
55

66
[mysql]
7+
8+
[mysqld]
9+
sql-mode="STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"

nginx/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ FROM nginx:alpine
33
MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
44

55
ADD nginx.conf /etc/nginx/
6-
COPY sites/*.conf /etc/nginx/sites-available/
76

87
ARG PHP_UPSTREAM=php-fpm
98

nginx/sites/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.conf
2+
!default.conf

0 commit comments

Comments
 (0)