https://github.com/ruogoo/docker-env
Docker deployment for development and production.
https://github.com/ruogoo/docker-env
deployment docker mysql nginx php redis
Last synced: 3 months ago
JSON representation
Docker deployment for development and production.
- Host: GitHub
- URL: https://github.com/ruogoo/docker-env
- Owner: ruogoo
- License: mit
- Created: 2015-09-11T15:04:04.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2021-03-27T03:49:36.000Z (about 5 years ago)
- Last Synced: 2025-02-07T12:48:48.805Z (about 1 year ago)
- Topics: deployment, docker, mysql, nginx, php, redis
- Language: Dockerfile
- Homepage: https://www.ruogoo.com
- Size: 67.4 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-env
**Docker deployment for development and production.**
All the services include:
- Nginx
- PHP
- MySQL
- Memcached
- Redis
- MongoDB
## Usage
1. Configure
./configure.sh
2. Change the configure files if you want.
3. Run
docker-compose up -d
## Configure
#### General
Generally by executing the `configure.sh` shell, all the basic configure will be ok.
#### Nginx
1. You can add any nginx config file named with `.conf` suffix to `nginx/conf.d` folder
2. And you should add shared volumes in `docker-compose.yml`
3. Then restart the container.
> Enjoy it!
#### MySQL
1. Put a new `my.cnf` file in the `mysql/conf.d` folder if needed.
2. Then restart the container.
> Well, It's OK!
#### PHP
After executing the `configure.sh` shell, The `php.ini` and `php-fpm.conf` files can be changed if necessary.
## Data Storage
- The shared `MySQL` data files will be located in `data/mysql` folder.
- The shared `MongoDB` data files will be located in `data/mongodb` folder.
## License
`ruogoo/docker-env` has worked well on **ruogoo.com** for a long time.
*Everyone can bring it to other product, but do not guarantee it works.*
This Source code is under [MIT license](https://github.com/ruogoo/docker-env/blob/master/LICENSE).