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
- Host: GitHub
- URL: https://github.com/nfriaa/docker-centos7-mariadb55-php54
- Owner: nfriaa
- License: mit
- Created: 2017-04-10T17:10:39.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-15T09:04:42.000Z (about 8 years ago)
- Last Synced: 2025-01-16T07:55:46.921Z (5 months ago)
- Topics: centos, containers, docker, lamp, mariadb, php
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
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
```;-)
```
__ _
/ _| (_)
_ __ | |_ _ __ _ __ _ __ _
| '_ \| _| '__| |/ _` |/ _` |
| | | | | | | | | (_| | (_| |
|_| |_|_| |_| |_|\__,_|\__,_|
```