An open API service indexing awesome lists of open source software.

https://github.com/nfriaa/docker-centos7-mariadb55-php54

Docker LAMP stack
https://github.com/nfriaa/docker-centos7-mariadb55-php54

centos containers docker lamp mariadb php

Last synced: 4 months ago
JSON representation

Docker LAMP stack

Awesome Lists containing this project

README

        

# Docker with {Centos7 + MariaDB5.5 + PHP5.4} #

A Docker LAMP stack to use for both Web development and production mode. Extending Centos/systemd in the docker file is optional but very useful (allows us to save a lot of time)...

## Description ##
A Docker file to build an run container with Centos7 + MariaDB5.5 + PHP5.4

## Build the image : ##
```shell
docker build --rm --no-cache -t centos7mariadb55php54_image .
```

## Run : ##
```shell
docker run --privileged --name centos7mariadb55php54_container -v /sys/fs/cgroup:/sys/fs/cgroup:ro -p 80:80 -d centos7mariadb55php54_image
```

## Run with shared volumes : ##
```shell
docker run --privileged --name centos7mariadb55php54_container -v /home/nafaa/monServeurLocal/htdocs:/var/www/html -v /sys/fs/cgroup:/sys/fs/cgroup:ro -p 80:80 -p 3306:3306 -v /home/nafaa/monServeurLocal/mariadb:/var/lib/mysql -d centos7mariadb55php54_image
```

;-)
```
__ _
/ _| (_)
_ __ | |_ _ __ _ __ _ __ _
| '_ \| _| '__| |/ _` |/ _` |
| | | | | | | | | (_| | (_| |
|_| |_|_| |_| |_|\__,_|\__,_|
```