Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeroenboersma/docker-compose-development
Clone and `bin/dev up`. Quickly start of developing locally with Nginx, PHP, Blackfire, Percona, Mailhog and Redis. Out of the box support for Magento2 Developer Box
https://github.com/jeroenboersma/docker-compose-development
development docker docker-compose docker-magento docker-magento2 local-development magento magento-developer-box magento2 mysql php php56 php70 php71 php72
Last synced: about 5 hours ago
JSON representation
Clone and `bin/dev up`. Quickly start of developing locally with Nginx, PHP, Blackfire, Percona, Mailhog and Redis. Out of the box support for Magento2 Developer Box
- Host: GitHub
- URL: https://github.com/jeroenboersma/docker-compose-development
- Owner: JeroenBoersma
- License: mit
- Created: 2015-07-01T08:20:15.000Z (over 9 years ago)
- Default Branch: development-docker-compose-2
- Last Pushed: 2024-05-24T10:12:48.000Z (6 months ago)
- Last Synced: 2024-10-30T05:57:05.444Z (14 days ago)
- Topics: development, docker, docker-compose, docker-magento, docker-magento2, local-development, magento, magento-developer-box, magento2, mysql, php, php56, php70, php71, php72
- Language: Shell
- Homepage:
- Size: 532 KB
- Stars: 207
- Watchers: 15
- Forks: 63
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: docs/code-of-conduct.md
Awesome Lists containing this project
README
# Installation
## Prerequisites
Install docker engine and docker compose plugin, for more info check: https://docs.docker.com/engine/install/```bash
sudo apt-get remove docker docker-engine docker.io containerd runc
sudo apt-get update
sudo apt-get install \
ca-certificates \
curl \
gnupg \
lsb-releasesudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpgecho \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/nullsudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin
```### Add user to the docker group and reboot
```bash
sudo usermod -aG docker ${USER}
reboot
```## Cloning
https://github.com/JeroenBoersma/docker-compose-development/tree/development-docker-compose-2/```bash
git clone -b development-docker-compose-2 https://github.com/JeroenBoersma/docker-compose-development.git developmentcd development
bin/dev setup
# press enter a few times and read instructions
# default php81
# setup your needs (elasticsearch/rabbitmq/etcetera)
# you can always run this again# adding to your profile to use `dev` commands
bin/dev profile >> ~/.zshrc # or ~/.bashrc if you use bash
```If you just installed zsh and your shell isn't changing to zsh, try logging in and out.
## Move the workspace directory to home
To avoid having the .git from the clone in your workspace, you can optionally move your workspace to your home directory.```bash
cddev down --remove-orphans
dev volume rm workspace
mkdir workspace
dev volume workspace workspacecdw
dev php-change php81 # if that's the defaultdev up
```## Make MySQL persistent in your development directory (optional)
This will destroy all current databases```bash
cd
cd developmentdev down --remove-orphans
dev volume rm mysql
mkdir mysql
dev volume mysql mysqldev setup # this will add your user and correct settings (press enter to everything)
```