Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danielm/docker-compose-php
Docker Compose + PHP 7.2
https://github.com/danielm/docker-compose-php
composer docker docker-compose mariadb mysql nginx php
Last synced: 1 day ago
JSON representation
Docker Compose + PHP 7.2
- Host: GitHub
- URL: https://github.com/danielm/docker-compose-php
- Owner: danielm
- Created: 2021-04-23T15:53:49.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-25T00:59:52.000Z (almost 4 years ago)
- Last Synced: 2024-11-29T14:41:54.758Z (2 months ago)
- Topics: composer, docker, docker-compose, mariadb, mysql, nginx, php
- Language: Dockerfile
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Docker Compose + PHP 7.4
Clone me and build cool stuff. This sets up some minimal containers with Nginx, PHP and MariaDB and installs your composer dependencies *(src/composer.json)*; potentially run migrations but that's up to you and what framework you use (see build/php-fpm/Dockerfile)
## Now you got:
- MariaDB, PHP-FPM and Nginx official images (ALPINE)
- Composer also from it's official image.
- **.env** File to setup Host port mapping, app environment vars, db settings
- Git for dependencies install
- Composer official image
- Persistent nginx logs and database data for development
- Optional Initial seeding SQL dump## Directories & Files
- src/ *Where Your PHP application files reside*
- src/public/ *Application public entrypoint*
- build/ *Docker & image config files and options*
- build/php-fpm/php.ini *Extra PHP directives*
- build/mariadb/data/ *MySQL data folder*
- build/mariadb/seed/*.sql *Sql scripts to run when container are created*
- logs/nginx/*.log *error and acccess logs*
- logs/mysql/ *MariaDB logfiles*
- .env *Varios setting for our container (See -env.sample)*## About
By [Daniel Morales](https://daniel.uy)
License: Released under the [MIT license](https://github.com/danielm/uploader/blob/master/LICENSE.txt)