Skip to content

Commit

Permalink
Use MySQL 5.7
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-cox committed Jul 2, 2017
1 parent a5921f5 commit 8ec780d
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 13 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,7 @@ docker build images/apache2_php5/ -t dockerdrupaldev/apache2-php5:latest
docker build images/apache2_php7/ -t dockerdrupaldev/apache2-php7:latest
docker build images/cli_tools_php5/ -t dockerdrupaldev/cli-tools-php5:latest
docker build images/cli_tools_php7/ -t dockerdrupaldev/cli-tools-php7:latest
docker build images/mysql/ -t dockerdrupaldev/mysql:latest
docker build images/web_tools/ -t dockerdrupaldev/web-tools:latest
docker build images/varnish/ -t dockerdrupaldev/varnish:latest
```
7 changes: 4 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,19 @@ services:
volumes:
- ./sites:/var/www
- apache_logs:/var/log/apache2
- ./etc/PHP/docker.ini:/etc/php/5.6/conf.d/docker.ini
- ./etc/php/docker.ini:/etc/php/5.6/conf.d/docker.ini

# Database server
db:
build: images/mysql
image: dockerdrupaldev/mysql:latest
hostname: mysql
environment:
- MYSQL_ROOT_PASSWORD=root
ports:
- "3306:3306"
volumes:
- mysql:/var/lib/mysql
- ./etc/mysql/my.cnf:/etc/mysql/conf.d/95-overrides.cnf

# Email catcher
mailcatcher:
Expand All @@ -42,7 +43,7 @@ services:

# Web development tools
web_tools:
build: images/web_tools
image: dockerdrupaldev/web-tools:latest
hostname: web-tools
links:
- db:mysql
Expand Down
2 changes: 1 addition & 1 deletion etc/mysql/my.cnf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
##
# Docker Drupal Development
#
# MySQL override config
# Override MySQL default config

[mysqld]
5 changes: 3 additions & 2 deletions images/mysql/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
#
# Database server container

FROM mysql:5.5
FROM mysql:5.7

LABEL maintainer="[email protected]"

ADD config/my.cnf /etc/mysql/conf.d/my.cnf
ADD config/docker.cnf /etc/mysql/conf.d/90-docker.cnf
ADD config/overrides.cnf /etc/mysql/conf.d/95-overrides.cnf

VOLUME /var/lib/mysql

Expand Down
7 changes: 0 additions & 7 deletions images/mysql/config/my.cnf → images/mysql/config/docker.cnf
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@

[mysqld]

bind-address=0.0.0.0
console=1
general_log=1
general_log_file=/dev/stdout
log_error=/dev/stderr

# Defaults
character_set_server = utf8
collation_server = utf8_general_ci
Expand All @@ -28,4 +22,3 @@ max_connections = 320
query_cache_limit = 1M
query_cache_size = 16M
sync_binlog = 1
table_cache = 500
6 changes: 6 additions & 0 deletions images/mysql/config/overrides.cnf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
##
# Docker Drupal Development
#
# Override config

[mysqld]

0 comments on commit 8ec780d

Please sign in to comment.