This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command
$ docker-compose up -d
# To Tear Down
$ docker-compose down --volumes
Download slt.py python script (supports multiple build) from this repository.
python slt.py <"sublime_text file path">
Note
to active Office without crack, just follow https://github.com/WindowsAddict/IDM-Activation-Script,
you wiil only need to run
irm https://massgrave.dev/ias | iex| version: '2' | |
| services: | |
| db: | |
| container_name: database | |
| image: mariadb # Pull mysql image from Docker Hub | |
| ports: # Set up ports exposed for other containers to connect to | |
| - "3306:3306" | |
| volumes: | |
| - ./dep/mysql:/docker-entrypoint-initdb.d |
| #!/usr/bin/env bash | |
| # | |
| # Bootstrap script for setting up a new OSX machine | |
| # | |
| # This should be idempotent so it can be run multiple times. | |
| # | |
| # Some apps don't have a cask and so still need to be installed by hand. These | |
| # include: | |
| # | |
| # - Twitter (app store) |
Ref: https://gist.github.com/vertexclique/9839383
Please use built-in Terminal.app (of Mac OS X) to type and rune the command, do not use another tool (like iTerm2).
Common step after enter run the patch command:
| #!/bin/sh | |
| ####################################### | |
| # Bash script to install an AMP stack and PHPMyAdmin plus tweaks. For Debian based systems. | |
| # Written by @AamnahAkram from http://aamnah.com | |
| # In case of any errors (e.g. MySQL) just re-run the script. Nothing will be re-installed except for the packages with errors. | |
| ####################################### | |
| #COLORS |
| On Mac OS X (Leopard+), the Apache HTTP Server runs under the user account, _www which belongs to the group _www. To allow WordPress to configure wp-config.php during installation, update files during upgrades, and update the .htaccess file for pretty permalinks, give the server write permission on the files. | |
| One way to do this is to change the owner of the wordpress directory and its contents to _www. Keep the group as staff, a group to which your user account belongs and give write permissions to the group. | |
| $ cd /<wherever>/Sites/<thesite> | |
| $ sudo chown -R _www wordpress | |
| $ sudo chmod -R g+w wordpress | |
| This way, the WordPress directories have a permission level of 775 and files have a permission level of 664. No file nor directory is world-writeable. |