Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/el-abdel/docker4php
Dockerized PHP development stack
https://github.com/el-abdel/docker4php
docker php
Last synced: 19 days ago
JSON representation
Dockerized PHP development stack
- Host: GitHub
- URL: https://github.com/el-abdel/docker4php
- Owner: el-abdel
- License: mit
- Created: 2021-12-20T14:35:39.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2021-12-31T11:15:36.000Z (about 3 years ago)
- Last Synced: 2023-03-05T09:46:46.131Z (almost 2 years ago)
- Topics: docker, php
- Language: Dockerfile
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker4php
Docker for PHP frameworks running apache, php8, mariaDb and phpMyAdmin.
### Requirements
- Git
- Docker### Usage
1. Clone this repo using:
```
git clone https://github.com/el-abdel/docker4php.git
```
2. Go to the repo directory:
```
cd docker4php
```
3. Edit environment variables in `.env` file
4. Start containers:
```
docker-compose up
```
> Do not forget to add virtual hosts (php-app.local, phpmyadmin.local) in your /etc/hosts file.### Project tree
```
Work Directory
|
|───docker4php <===== Dockerized environnement
│ │ .gitignore
| | .env
| | docker-compose.yml
│ │ README.md
| | LICENSE
│ │
│ └───data
| | .gitignore
| |
│ └───log
| | .gitignore
| |
│ └───etc
| | │
| | └───apache2
│ | |
| | └───sites-enabled
│ | php-app.local.conf
| |
| |
| └───images
│ | Dockerfile
│ |
| └───config
│ opcache.ini
│
└───php-app <===== Application code source here
```### Install dependencies
The vendor folder is not shared in our volumes to avoid making the application slow, so we need to install our dependencies in the container. To do so run:
```
docker-compose run --rm composer install --ignore-platform-reqs
```