DEPRECATED – use whatwedo/symfony
10K+
whatwedo/symfony5 is an image configured for serving Symfony 5 applications. It has an installed nginx server, PHP interpreter, PHP-FPM, git, Composer, an init system and a container health check. It's based on Alpine Linux.
| Tag | State | OS | PHP Version |
|---|---|---|---|
v2.3, v2.3-[BUILD-DATE] | Stable | Alpine 3.12 | |
v2.2, v2.2-[BUILD-DATE] | Security fixes only | Alpine 3.11 |
There will be no latest tag available in future. Using a latest tag can cause a lot of troubles, especially if you are using Docker in production. Please use the current stable tag (v2.3) instead.
docker run -p 80:80 -v [YOUR-PROJECT-ROOT]:/var/www whatwedo/symfony4:v2.2
gosu is a lightweight tool used for changing the current user. gosu don't have very strange and often annoying TTY and signal-forwarding behavior like su or sudo.
goss is a tool for validating a server’s configuration and health. goss is preconfigured to run several checks which are automatically exposed to Docker health check. If you are using Kubernetes, you can run goss validate as liveness/readyness probe.
If you want to add you own checks, you can place it in the /etc/goss/conf.d directory.
nginx is configured to use it with Symfony 5 applications using PHP-FPM. Place your application in /var/www to serve it.
PHP is installed using the codecasts/php-alpine apk repository. The following PHP modules are installed per default:
The following custom setting were made
| key | value |
|---|---|
| upload_max_filesize | 128M |
| post_max_size | 128M |
| php_admin_value[upload_max_filesize] | 128M |
| pm.max_children | 10 |
| pm.start_servers | 1 |
| pm.min_spare_servers | 1 |
| pm.max_spare_servers | 5 |
runit is a lightweight init system with service supervision. runit is configured to load and monitor all services in the /etc/service directory. goss is configured check the runit service health.
The default command (CMD) of this image is set to /sbin/upstart. /sbin/upstart provides a simple init logic. You are able to place one or multiple scripts in the /etc/upstart directory. These scripts are going to be automatically executed in alphabetical order at the container startup. After running all scripts, /sbin/upstart will trigger the runit execution.
This image is not using any environment variables.
This Image is not using any volumes.
It's sometimes quite hard to use Docker in your development workflow. We decided to face this problem with our own helper toolset called dde (available on GitHub at whatwedo/dde). dde is optimised to use it together with this image. Using dde is just a suggestion and not a requirement to use this image in your project.
If you have any problems with this image, feel free to open a new issue in our issue tracker https://github.com/whatwedo/docker-base-images/issues.
This image is licensed under the MIT License. The full license text is available under https://github.com/whatwedo/docker-base-images/blob/v2.2/LICENSE.
There are a number of images we are using at whatwedo. Feel free to use them. More information about the other images are available in our Github repo.
Content type
Image
Digest
sha256:9b6c659be…
Size
75.7 MB
Last updated
over 3 years ago
docker pull whatwedo/symfony5:v2.3