Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bertoni/dockerfile-apache-php
https://github.com/bertoni/dockerfile-apache-php
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/bertoni/dockerfile-apache-php
- Owner: bertoni
- Created: 2016-01-07T00:04:50.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-23T01:46:46.000Z (over 8 years ago)
- Last Synced: 2023-05-04T21:15:04.553Z (over 1 year ago)
- Language: Shell
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Minimal environment for CentOs + Apache + PHP
=============================================Use with Docker http://www.docker.io
This Dockerfile provide an environment Centos + Apache + PHP for to be used in the developing environment, for to be faster and more productive create environments of develop.
Questions as security and performance were not thought.Was used the following versions:
CentOS release 6.7 (Final)
Apache/2.2.15
PHP 5.6.16
To construct the image
cd
docker build -t .To run the container
docker run -i -t --name app -p 80:80 -v :/tmp/external -v :/var/www/html/
To exit of the container press Ctrl+p+q
To enter in the container terminal
List the containers
docker ps -a
Enter in the mysql conatiner
docker exec -i -t bashObs:
:: Remember of give execution permission for the file run.sh [chmod a+x /run.sh]
:: Put your file configurations in the same folder of the file run.sh. The files names need to be the same of the projects configurated in run.sh
:: Change the file run.sh and include the names of the projects and your alias to be used
:: Didn't forget to include the urls in your hosts