https://github.com/saada/docker-compose-php-mysql
PHP environment setup using Docker Compose on OSX
https://github.com/saada/docker-compose-php-mysql
Last synced: over 1 year ago
JSON representation
PHP environment setup using Docker Compose on OSX
- Host: GitHub
- URL: https://github.com/saada/docker-compose-php-mysql
- Owner: saada
- Created: 2015-04-15T06:58:53.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2016-04-18T17:24:00.000Z (about 10 years ago)
- Last Synced: 2023-03-23T22:21:27.601Z (about 3 years ago)
- Language: PHP
- Homepage:
- Size: 1000 Bytes
- Stars: 30
- Watchers: 4
- Forks: 21
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker Compose PHP+MYSQL on OSX
This setup is great for writing quick apps in PHP from an OSX machine. It uses Virtualbox and machine to create the actual environment and then uses compose to setup the application services
### Install docker, compose, and machine
```
brew update
brew install docker docker-compose docker-machine
```
### InstallVirtualbox
[Download Virtualbox](https://www.virtualbox.org/wiki/Downloads)
### Setup docker environment
```
docker-machine create -d virtualbox dev
docker-machine start dev
eval $(docker-machine env dev)
```
### Build & Run!
```
docker-compose build
docker-compose up -d
```
you can now start writing your app!
### Stop
```
docker-compose kill
```
### MySQL
Check out `app/index.php` for getting credentials from the ENV variables.