Instead of profiles for production and development, use separate compose files: one for dev, one for prod and one with shared services (NGINX, Postgres). This also means splitting up the Dockerfiles, so prod and dev each have their own version. Use slim images for production containers.
Instead of profiles for production and development, use separate compose files: one for dev, one for prod and one with shared services (NGINX, Postgres). This also means splitting up the Dockerfiles, so prod and dev each have their own version. Use slim images for production containers.