https://github.com/chenyangguang/php-dockerup
https://github.com/chenyangguang/php-dockerup
docker docker-compose mysql nginx php
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/chenyangguang/php-dockerup
- Owner: chenyangguang
- Created: 2018-04-10T12:48:15.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-10T16:16:22.000Z (about 8 years ago)
- Last Synced: 2025-09-04T06:48:23.686Z (10 months ago)
- Topics: docker, docker-compose, mysql, nginx, php
- Language: PHP
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PHP dockerup
A simple docker environment with nginx & php-fpm & mysql.
# Depends
* [docker install](https://docs.docker.com/install/#supported-platforms)
* [docker-compose install](https://github.com/chenyangguang/php-dockerup/edit/master/README.md)
# Install
`
git clone https://github.com/chenyangguang/php-dockerup.git
`
# Up and down work
- `docker-compose up -d `
- `docker-compose ps`
- `docker-compose down -d`
# Short command with docker-compose
Add
`
echo 'alias dp="docker-compose"' >> ~/.zshrc
`
(~/.zshrc or ~/.bashrc) to the last line in any of your shell config file. Then operation
`
source ~/.zshrc
`
So we can use ***dp*** command short for ****docker-compose***.