ctk icon indicating copy to clipboard operation
ctk copied to clipboard

Feature request: Presets/templates

Open LilTrublMakr opened this issue 5 years ago • 2 comments

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 avatar Jun 02 '20 16:06 LilTrublMakr

@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.

corpulent avatar Jun 03 '20 15:06 corpulent

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.

ravensorb avatar Jun 23 '20 18:06 ravensorb