This example makes use of Nginx, MySQL and PHP-FPM docker containers (debian:stretch-slim) to run Symfony application in development DEV environment and contains only the bare minimum modules so you can adapt it to your needs. All you have to do is, copy docker folder below into your symfony application root then run docker-compose up -d command in symfony/docker folder. That’s all!

Timezone

Although it all depends on your own requirements, the safest timezone for servers is the UTC rather than DST (Daylight Savings) dependent ones. In example below I am setting it to Europe/London (GMT - this is a DST) but you can either remove all those lines or just replace with UTC.

#docker #symfony #nginx

Debian:stretch-slim Docker Setup for Symfony Applications
1.30 GEEK