Skip to content

Commit

Permalink
Merge pull request #23 from pipech/Fixed---MariaDB-is-not-properly-co…
Browse files Browse the repository at this point in the history
…nfigured

change mariadb config adding method
  • Loading branch information
pipech authored Aug 1, 2018
2 parents 384d15e + 40b801d commit b662160
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 45 deletions.
41 changes: 0 additions & 41 deletions development_setup/conf/mariadb-conf/mariadb.cnf

This file was deleted.

6 changes: 2 additions & 4 deletions development_setup/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '2'

services:
frappe:
build: .
build: ./image/frappe/.
ports:
- "8000-8005:8000-8005" #webserver_port
- "9000-9005:9000-9005" #socketio_port
Expand All @@ -19,15 +19,13 @@ services:
command: tail -f /dev/null

mariadb:
image: mariadb:10.2.12
build: ./image/mariadb/.
environment:
- MYSQL_USER=root
- MYSQL_ROOT_PASSWORD=mysql
volumes:
# persisting data
- mariadb-data-volumes:/var/lib/mysql
# config
- ./conf/mariadb-conf/mariadb.cnf:/etc/mysql/conf.d/mariadb.cnf
ports:
- "3306:3306"

Expand Down
File renamed without changes.
3 changes: 3 additions & 0 deletions development_setup/image/mariadb/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM mariadb:10.2.12

COPY ./mariadb.cnf /etc/mysql/mariadb.conf.d/frappe.cnf
20 changes: 20 additions & 0 deletions development_setup/image/mariadb/mariadb.cnf
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[mysqld]
bind-address = 0.0.0.0

innodb-file-format=barracuda
innodb-file-per-table=1
innodb-large-prefix=1
character-set-client-handshake = FALSE
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci


[mysqld_safe]
skip_log_error
syslog


[mysqldump]
quick
quote-names
max_allowed_packet = 16M

0 comments on commit b662160

Please sign in to comment.