The j2 template for the dockerfile is now indescribably complex, but in spite of that is not easily modified for other use cases. Let's make the following changes:
Make the path to the template file configurable so that end-users can swap their own template in,
Make the default template file more opinionated so it lands quite close to one specific use case (e.g. proxy, redis, cron, postgres, letsencrypt, nextcloud, custom volume),
Provide a single variable to the template, something like this:
This will permit end-users to provide their own variables in case their template looks quite different, while still permitting a simple and usable default configuration.
The j2 template for the dockerfile is now indescribably complex, but in spite of that is not easily modified for other use cases. Let's make the following changes:
Provide a single variable to the template, something like this:
This will permit end-users to provide their own variables in case their template looks quite different, while still permitting a simple and usable default configuration.