项目作者: colapiombo

项目描述 :
Docker running Apache, PHP-FPM, MySQL Adminer, RabbitMQ and PHPMyAdmin.
高级语言: Makefile
项目地址: git://github.com/colapiombo/mementodockeruse.git
创建时间: 2019-04-04T12:22:08Z
项目社区:https://github.com/colapiombo/mementodockeruse

开源协议:MIT License

下载


Apache, PHP, MySQL, RabbitMQ, Adminer, PhpMyAdmin

Docker running Apache, PHP-FPM, MySQL Adminer, RabbitMQ and PHPMyAdmin.

Overview

  1. Install prerequisites

    Before installing project make sure the following prerequisites have been met.

  2. Clone the project

    We’ll download the code from its repository on GitHub.

  3. Run the application

    By this point we’ll have all the project pieces in place.

  4. Use Docker Commands

    When running, you can use docker commands for doing recurrent operations.


Install prerequisites

For now, this project has been mainly created for Unix (Linux/MacOS). Perhaps it could work on Windows.

All requisites should be available for your distribution. The most important are :

Check if docker-compose is already installed by entering the following command :

  1. which docker-compose

On Ubuntu and Debian these are available in the meta-package build-essential. On other distributions, you may need to install the GNU C++ compiler separately.

  1. sudo apt install build-essential

Images to use

This project use the following ports :

Server Port
mariadb 3306
adminer 8080
PHPMyAdmin 80
apache 80/433
RabbitMQ 15672

Clone the project

To install Git, download it and install following the instructions :

  1. git clone https://github.com/MarshallJamesRaynor/mementodockeruse.git

Go to the project directory :

  1. cd mementodockeruse

Project tree

  1. /memento-docker-use/
  2. ├── dev
  3. ├── config
  4. └── apache2
  5. └── sites
  6. ├── docker
  7. ├── adminer
  8. ├── Dockerfile
  9. ├── apache
  10. ├── Dockerfile
  11. └── dev.apache.conf
  12. ├── apache
  13. └── Dockerfile
  14. ├── mariadb
  15. └── Dockerfile
  16. ├── php
  17. └── Dockerfile
  18. ├── phpmyadmin
  19. └── Dockerfile
  20. └── rabbitmq
  21. └── Dockerfile
  22. ├── documentation
  23. └── command.md
  24. ├── logs
  25. └── apache2
  26. └── scripts
  27. └── hosts.sh
  28. ├── public_html
  29. └── index.php
  30. ├── .editorconfig
  31. ├── .env
  32. ├── .gitignore
  33. ├── composer.json
  34. ├── docker-compose.yml
  35. ├── LICENSE
  36. ├── Makefile
  37. └── README.md

Run the application

Makefile

One of the main features of this project is the ability to manage the environment from the project directory itself.
The starter includes a Makefile to simplify the basic tasks:

  1. Start the application :

    1. make start

    Please wait this might take a several minutes…

    1. sh dev/scripts/hosts.sh
  1. Open your favorite browser :

  2. Stop and clear services

    1. make stop

Here are other several commands that you can now use from your project directory.


Environment

  • build Build the environment
  • rebuild force a rebuild by passing —no-cache
  • logs Follow logs generated by all containers
  • logs-full Follow logs generated by all containers from the containers creation
  • php Open a terminal in the “php” container
  • apache Open a terminal in the “apache” container
  • ps List all containers managed by the environment
  • start Start the environment
  • stats Print real-time statistics about containers ressources usage
  • stop Stop the environment
  • destroy destroy the environment
  • prune clean all that is not actively used
  • help show list command

Help me

Any thought, feedback or (hopefully not!) issue.