Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
wordpress-docker-compose
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Thorsten Sichtermann
wordpress-docker-compose
Commits
1c47c442
Commit
1c47c442
authored
7 years ago
by
Harald Nezbeda
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #4 from kadaliao/master
Add support for OSX, add php upload config
parents
9205984c
2ffc9c1e
Branches
Branches containing commit
Tags
v1.7.2
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
config/php.conf.uploads.ini
+6
-0
6 additions, 0 deletions
config/php.conf.uploads.ini
docker-compose.yml
+1
-0
1 addition, 0 deletions
docker-compose.yml
export.sh
+6
-1
6 additions, 1 deletion
export.sh
with
13 additions
and
1 deletion
config/php.conf.uploads.ini
0 → 100644
+
6
−
0
View file @
1c47c442
file_uploads
=
On
memory_limit
=
500M
upload_max_filesize
=
30M
post_max_size
=
30M
max_execution_time
=
600
This diff is collapsed.
Click to expand it.
docker-compose.yml
+
1
−
0
View file @
1c47c442
...
@@ -5,6 +5,7 @@ services:
...
@@ -5,6 +5,7 @@ services:
ports
:
ports
:
-
127.0.0.1:80:80
# change ip if required
-
127.0.0.1:80:80
# change ip if required
volumes
:
volumes
:
-
./config/php.conf.uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
-
./wp-app:/var/www/html
# Full wordpress project
-
./wp-app:/var/www/html
# Full wordpress project
#- ./plugin-name/trunk/:/var/www/html/wp-content/plugins/plugin-name # Plugin development
#- ./plugin-name/trunk/:/var/www/html/wp-content/plugins/plugin-name # Plugin development
#- ./theme-name/trunk/:/var/www/html/wp-content/themes/theme-name # Theme development
#- ./theme-name/trunk/:/var/www/html/wp-content/themes/theme-name # Theme development
...
...
This diff is collapsed.
Click to expand it.
export.sh
+
6
−
1
View file @
1c47c442
_os
=
"
`
uname
`
"
_now
=
$(
date
+
"%m_%d_%Y"
)
_now
=
$(
date
+
"%m_%d_%Y"
)
_file
=
"wp-data/data_
$_now
.sql"
_file
=
"wp-data/data_
$_now
.sql"
docker-compose
exec
db sh
-c
'exec mysqldump "$MYSQL_DATABASE" -uroot -p"$MYSQL_ROOT_PASSWORD"'
>
$_file
docker-compose
exec
db sh
-c
'exec mysqldump "$MYSQL_DATABASE" -uroot -p"$MYSQL_ROOT_PASSWORD"'
>
$_file
if
[[
$_os
==
"Darwin"
*
]]
;
then
sed
-i
'.bak'
1,1d
$_file
else
sed
-i
1,1d
$_file
# Removes the password warning from the file
sed
-i
1,1d
$_file
# Removes the password warning from the file
fi
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment