Skip to content

03. Docker Build & Config

Daniel Trolezi edited this page Sep 18, 2024 · 2 revisions

Docker Build

Bellow is a list of some files used to build the application, in case you need to do any customization.
To changes take effect, it's necessary to run $ docker compose build.

nginx

/docker/nginx/default.conf

supervisord

/docker/supervisor/supervisord.conf

php-fpm

/docker/supervisor/conf.d/php-fpm.conf

php (ini settings)

/docker/php/*.ini

❇️ Configured extensions:

Entrypoints

The entrypoint for the php-fpm container

/docker/entrypoint.app.sh

❇️ Composer dependencies are being installed here to prevent "empty vendor" problem.
❇️ Defines the Application Key.
❇️ Runs migrations.
❇️ Start Supervisord.

The entrypoint for the nginx container

/docker/entrypoint.nginx.sh

❇️ Sets the value of PHP_UPSTREAM_HOST env to nginx default config:

  • This is defined in docker-compose.yml
  • This host should point to the php-fpm process, can change depending on environment

Config

Bellow is a list of configuration files used for some packages:

phpcs

/phpcs.xml

phpunit

/phpunit.xml

rector

/reactor.php

swagger

/swagger.php