Config for NGINX and docker container

Job ID: 31991949

Budget: $10 – $30 USD

Write configuration files for nginx so that requests starting with
/i
/ v
/ gif
served static files from the corresponding child directories in the "~/static" directory.

Requests starting with "/api" must be proxied to the docker container.
API will be used for media files will uploading to the "~/static" directory mentioned above. The server should allow uploading files up to 20 MB.
There must be two directories "~/logs" and "~/static" connected to the docker container through the volume.
You need to write a docker-compose file or provide a CLI command to start the container.

The nginx configuration should be easily extensible to support proxy requests to other servers. Ideally, provide comments to the configuration with explanations of what needs to be done to add another server.

To check the config, I will provide an opportunity to download the server from the public docker repository.
Acceptance criteria: config works on my VPS.
Related categories: Linux Nginx Network Administration Docker