Serving resized S3 images on the fly

#1 Dockerizing the Symfony 6 app

Let’s create a working Symfony app inside a Docker container

.com software
5 min readAug 21, 2022

--

Photo by Clemens van Lay on Unsplash

If you didn’t notice — this is part of a series

Creating a GitHub repository for the project

To begin our journey we need a place to host the code. GitHub seems to be the best choice currently. The project is going to be open-sourced so let’s start with a public repository. The name for the repository is required, that’s always the hardest part.

I’ll go for thumbgun, obviously, since we’re going to shoot with thumbnails:

https://github.com/dotcom-poland/thumbgun

Bootstrapping the environment in Docker

I use Docker since 2015 and I haven’t installed the PHP binary since then. To start the project I need an environment.

That being said let’s start with the docker-compose.yml file and define two services: nginx is going to act as the reverse proxy for the backend and the php-fpm that will act as one.

I’ve created an empty app directory which will contain the Symfony app. I’ve pointed mapped this directory to the…

--

--

.com software

Father • PHP developer • entrepreneur • working for a €1bn unicorn startup as a backend engineer >>> https://bit.ly/dotcom-software