Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Presets/templates #17

Open
LilTrublMakr opened this issue Jun 2, 2020 · 2 comments
Open

Feature request: Presets/templates #17

LilTrublMakr opened this issue Jun 2, 2020 · 2 comments
Assignees

Comments

@LilTrublMakr
Copy link

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.

@corpulent
Copy link
Contributor

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

@ravensorb
Copy link

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.

@corpulent corpulent self-assigned this Jul 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants