it-tools icon indicating copy to clipboard operation
it-tools copied to clipboard

Docker to Docker compose Tool: Improve by adding common settings to a compose file.

Open tobiashochguertel opened this issue 2 years ago • 2 comments
trafficstars

Describe the solution you'd like I would appreciate it if we could configure the converter so that we can generate quickly standard docker compose files with some additional settings like traefik labels.

It would be great to have a way to add common additions to the Compose file like labels, networks and so on. I think on something like that we can choice from a dropdown menu the settings which we want to apply to the compose file.

Additional context

here is a example how my compose files often look, I work much with traefik and let's encrypt so I have there two networks which I add and labels to configure traefik.

version: '3.9'

networks:
  proxy:
    external: true
  intranet:
    external: true

services:
  it-tools:
    image: 'corentinth/it-tools:latest'
    # ports:
    # - '8080:80'
    restart: unless-stopped
    container_name: it-tools
    labels:
      - "traefik.enable=true"
      - "traefik.docker.network=proxy"
      # https://it-tools.vps4.hochguertel.work
      - "traefik.http.routers.it-tools.entrypoints=http"
      - "traefik.http.routers.it-tools.rule=Host(`it-tools.vps4.hochguertel.work`)"
      - "traefik.http.routers.it-tools.service=it-tools"
      - "traefik.http.services.it-tools.loadbalancer.server.port=80"
      - "traefik.http.middlewares.it-tools-https-redirect.redirectscheme.scheme=https"
      - "traefik.http.routers.it-tools.middlewares=it-tools-https-redirect"
      - "traefik.http.routers.it-tools-secure.entrypoints=https"
      - "traefik.http.routers.it-tools-secure.rule=Host(`it-tools.vps4.hochguertel.work`)"
      - "traefik.http.routers.it-tools-secure.service=it-tools"
      - "traefik.http.routers.it-tools-secure.tls=true"
      - "traefik.http.routers.it-tools-secure.tls.certresolver=http"
    networks:
      - proxy
      - intranet

tobiashochguertel avatar Sep 20 '23 09:09 tobiashochguertel

Hi @tobiashochguertel , may be interesting to make a traefik compose builder alone ? any more information about common configs ?

sharevb avatar Jan 21 '24 22:01 sharevb

Hi @tobiashochguertel , first implementation here : https://sharevb-it-tools.vercel.app/traefik-compose-maker

And if you are interested in an up to date version of it-tools, with many improvements, new tools, and bug fixes, as this repo is almost no more maintained, I made a fork here : https://github.com/sharevb/it-tools (https://sharevb-it-tools.vercel.app/ and docker images https://github.com/sharevb/it-tools/pkgs/container/it-tools)

sharevb avatar May 13 '25 21:05 sharevb