ctk
ctk copied to clipboard
Feature request: Presets/templates
This is more than likely a 'further down the road' feature request.
I think it would be nice to add some type of preset/template system to adding new containers. My real use case would include:
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
labels:
- 'traefik.enable=true'
- 'traefik.backend=awesomeContainer'
- 'traefik.docker.network=proxy'
- 'traefik.frontend.rule=Host:awesomeContainer.${DOMAIN}'
- 'traefik.port=${AWESOMECONTAINER_PORT}'
- 'traefik.frontend.entryPoints=https'
I have to do this for every container of mine that I want to access outside of my network (which is 95% of mine. It got so repetitive that I made a snippet in VS Code just to keep from copy/pasting.
If you do a 'user account' system at some point, this would be a good thing to tie in to an account.
@LilTrublMakr this looks like a really useful feature. I will roll out account management first, so users can see all of their already created projects. Implementing this afterwards shouldn't take too long.
Love the idea -- I wrote a small python script to handle things like Traefikx, watchtower, etc. Would be very cool if there was a way to do "token" replacement with the snippets too.
Example: Have a token for the servicename or hostname that could be used in the snippet.