Switch from `nginx:1.29-alpine-slim` to `nginxinc/nginx-unprivileged:stable-alpine` for improved security by running as a non-root user. Changed the exposed port from 80 to 8080 in the configurations to reflect the unprivileged setup. Adjusted the `docker-compose.yml` and `nginx.conf` accordingly.
Configured a new location block in `nginx.conf` to forward requests from `/api/` to the backend service running on port 8000. This includes necessary headers and settings to handle the proxied requests properly.