项目作者: inoshadi

项目描述 :
Apache2 with php5 and MariaDB 10.0 on Ubuntu 14.04 LTS
高级语言: PHP
项目地址: git://github.com/inoshadi/docker-lamp.git
创建时间: 2018-08-19T14:07:44Z
项目社区:https://github.com/inoshadi/docker-lamp

开源协议:

下载


Apache2 with php5 and MariaDB 10.0 on Ubuntu 14.04 LTS

Docker Hub; inoshadi/docker-lamp

This is a docker images mixed of nimmis/apache-php5 and nimmis/mariadb
with a little modification

What’s inside

  • Linux: Ubuntu 14.04 LTS
  • Apache Web Server: Apache2 2.24
  • MariaDB: MariaDB 10.0
  • PHP: PHP 5.5.9
  • Adminer: 4.6.3

Features

  • mod_rewrite enable
  • composer
  • bash access to the container

Examples

  • Basic usage, using port 8080:
    1. docker run -d -p 8080:80 inoshadi/docker-lamp
  • To access the site contents from outside the container you should map /var/www/html with your local files in /home/inoshadi/html:
    1. docker run -d -p 8080:80 -v /home/inoshadi/html:/var/www/html inoshadi/docker-lamp
  • set mysql root password to myrootpass use this command:
    1. docker run -d -p 8080:80 -v /home/inoshadi/html:/var/www/html -e DB_ROOT_PASSWORD=myrootpass inoshadi/docker-lamp
  • open your browser then point to http://localhost:8080

  • The docker container is started with the -d flag so it will run in the background.
  • To get the list of containers, run :
    1. docker ps
  • To run commands or edit settings inside the container with id f3d960a8b31f run:
    1. docker exec -ti f3d960a8b31f /bin/bash
  • Expected result is terminal prompt similiar to root@f3d960a8b31f:~# _

Default Configuration

  • conf/000-default.conf

    1. ServerName localhost
    2. <VirtualHost *:80>
    3. ServerAdmin webmaster@localhost
    4. DocumentRoot /var/www/html
    5. ErrorLog ${APACHE_LOG_DIR}/error.log
    6. CustomLog ${APACHE_LOG_DIR}/access.log combined
    7. <Directory /var/www/html></Directory>
    8. Options Indexes FollowSymLinks
    9. DirectoryIndex index.php index.html
    10. AllowOverride All
    11. Require all granted
    12. </Directory>
    13. </VirtualHost>
  • trusty/source.list # Override default mirror to http://buaya.klas.or.id/ubuntu/
  • trusty/source.list # Override default mirror to http://kambing.ui.ac.id/ubuntu/