Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
laradock
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kerwin
laradock
Commits
b254d4a9
Commit
b254d4a9
authored
Sep 11, 2016
by
Bo-Yi Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add mysql custom configuration file.
Signed-off-by:
Bo-Yi Wu
<
appleboy.tw@gmail.com
>
parent
2ed475f1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
9 deletions
+8
-9
docker-compose.yml
docker-compose.yml
+1
-4
Dockerfile
mysql/Dockerfile
+1
-5
my.cnf
mysql/my.cnf
+6
-0
No files found.
docker-compose.yml
View file @
b254d4a9
...
...
@@ -101,10 +101,7 @@ services:
### MySQL Container #########################################
mysql
:
build
:
context
:
./mysql
args
:
-
MAX_ALLOWED_PACKET=20M
build
:
./mysql
volumes_from
:
-
volumes_data
ports
:
...
...
mysql/Dockerfile
View file @
b254d4a9
...
...
@@ -2,11 +2,7 @@ FROM mysql:latest
MAINTAINER
Mahmoud Zalt <mahmoud@zalt.me>
ARG
MAX_ALLOWED_PACKET=1M
ENV
MAX_ALLOWED_PACKET ${MAX_ALLOWED_PACKET}
# Set MAX_ALLOWED_PACKET to /etc/mysql/my.cnf
RUN
sed
-i
"s/^
\[
mysqld
\]
$/
\[
mysqld
\]\n
max_allowed_packet =
${
MAX_ALLOWED_PACKET
}
/g"
/etc/mysql/my.cnf
ADD
my.cnf /etc/mysql/conf.d/my.cnf
CMD
["mysqld"]
...
...
mysql/my.cnf
0 → 100644
View file @
b254d4a9
# The MySQL Client configuration file.
#
# For explanations see
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
[mysql]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment