Deploy php application

@Pierre_Mavro I tried with nginx API gateway, this is the routes.conf.template I used

location / {
    try_files $uri /index.php$is_args$args;
}

location ~ ^/index\.php$ {
    fastcgi_pass $API_PHP;
    fastcgi_split_path_info ^(.+\.php)(/.*)$;
    include fastcgi_params;

    fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
    fastcgi_param DOCUMENT_ROOT $realpath_root;
    fastcgi_param PHP_VALUE "error_log=/var/log/nginx/application_php_errors.log";

    internal;
}

location ~ \.php$ {
    return 404;
}

The main problem with that is that I don’t have access to the index.php file that is in the api container. It works with docker-compose because they share the same volume.

Maybe it can work with Dockerfile target feature where I can have the nginx configuration in my php application repository or by sharing the same volume