PHPackages                             svenfinke/docker\_php\_mysql - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [DevOps &amp; Deployment](/categories/devops)
4. /
5. svenfinke/docker\_php\_mysql

AbandonedArchivedProject[DevOps &amp; Deployment](/categories/devops)

svenfinke/docker\_php\_mysql
============================

A basic docker container setup for your application

0.1.0(8y ago)026Shell

Since Feb 27Pushed 8y agoCompare

[ Source](https://github.com/svenfinke/docker_php_mysql)[ Packagist](https://packagist.org/packages/svenfinke/docker_php_mysql)[ RSS](/packages/svenfinke-docker-php-mysql/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Default development stack with docker
=====================================

[](#default-development-stack-with-docker)

This package is supposed to provide you with a basic setup to develop your php application with docker. Just install it with `composer require svenfinke/docker_php_mysql --dev` and start the container with `vendor/bin/docker_start.sh`

Parameters
----------

[](#parameters)

The docker setup is automatically loading the .env file from your project root. This way you can easily set any [Composer CLI parameters](https://docs.docker.com/compose/env-file/#compose-file-and-cli-variables) that would be set with environment variables. You can also configure the Database with the following parameters:

- MYSQL\_ROOT\_PASSWORD
- MYSQL\_DATABASE
- MYSQL\_USER
- MYSQL\_PASSWORD

The ports which are exposed to the host can be configured with this variables:

- HOST\_WEBSERVER\_PORT
- HOST\_MYSQL\_PORT

Ports are being used to ensure that Mac is also supported.

Managing the containers
=======================

[](#managing-the-containers)

There are a few scripts to start/stop the containers:

- docker\_start.sh
- docker\_stop.sh
- docker\_remove.sh

**All the scripts are located at vendor/bin.** They should be quite self-explaining. Stop is really using stop, so if you want to remove the containers, call the remove script.

Additional Scripts
------------------

[](#additional-scripts)

Sometimes you want to SSH into the machine or run some scripts on it. There are 2 ways of doing this: `docker_ssh.sh` will run shell on the php-fpm machine. The other, more flexible, way is to use `docker_exec.ssh php-fpm sh`. This command would be the equivalent to `docker_ssh.sh`, but you could also run e.g. `docker_exec.ssh php-fpm 'bin/console doctrine:migrations:migrate'` if you are running a symfony application.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2999d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bdb77d2666dcf6768a8111ef9f1f7ac42c355d758f43fc3f4faa56bdeb16a893?d=identicon)[svenfinke](/maintainers/svenfinke)

---

Top Contributors

[![svenfinke](https://avatars.githubusercontent.com/u/564499?v=4)](https://github.com/svenfinke "svenfinke (22 commits)")

### Embed Badge

![Health badge](/badges/svenfinke-docker-php-mysql/health.svg)

```
[![Health](https://phpackages.com/badges/svenfinke-docker-php-mysql/health.svg)](https://phpackages.com/packages/svenfinke-docker-php-mysql)
```

###  Alternatives

[deployer/deployer

Deployment Tool

11.0k25.4M207](/packages/deployer-deployer)[appwrite/server-ce

End to end backend server for frontend and mobile apps.

55.3k84.2k](/packages/appwrite-server-ce)[pragmarx/health

Laravel Server &amp; App Health Monitor and Notifier

2.0k1.0M2](/packages/pragmarx-health)[felixfbecker/language-server-protocol

PHP classes for the Language Server Protocol

22476.7M6](/packages/felixfbecker-language-server-protocol)[heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP and Apache2/Nginx as on Heroku

8161.3M10](/packages/heroku-heroku-buildpack-php)[tiamo/phpas2

PHPAS2 is a php-based implementation of the EDIINT AS2 standard

4674.7k](/packages/tiamo-phpas2)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
