Skip to content

Conversation

@FoxxMD
Copy link
Owner

@FoxxMD FoxxMD commented Aug 20, 2025

Type of change

  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

FoxxMD added 6 commits August 18, 2025 19:24
* add socket-proxy for compose development
* add mounts extended compose file for user-specific mounts without modifying devcontainer
* Include socket-proxy for compose parsing support
* Makes extending with mounts.yml easier for doing dev with local directories
…data and simplify all stack generation

* Remove/rename directory ENVs to be clearer in description
* Introduce STACKS_FROM source of truth ENV
* Remove rigid monorepo mode, make git stack builder responsible for finding git up parent tree
* Use parsed compose project data to supplement stack building (name, compose files)
@FoxxMD
Copy link
Owner Author

FoxxMD commented Aug 20, 2025

This refactor drastically simplifies parsing stacks:

  • No longer required to specify monorepo, specific git configuration, or folders WRT specific parsing "mode"
  • Can use running compose projects on machine as generated stacks, or supplement scanned folders
services:
  komodo-import:
    image: foxxmd/komodo-import:pr-3
    volumes:
      ## The top-level folder compose projects on the host live in
      ## 
      ## * In STACKS_FROM=compose mode this can be any folder as long as all stacks are subfolders at some point
      ## * In STACKS_FROM=dir mode this is the "parent" folder where all immediate subfolders are compose projects (dockge)
      - /home/myUser/myStacks:/filesOnServer
    environment:
      ## Same path as the host folder mounted above
      - HOST_DIR=/home/myUser/myStacks
      ## Komodo Server name to use for generated Stacks
      - SERVER_NAME=my-cool-server
      ## Source of truth for what stacks are generated
      ##
      ## * dir => (default) generate from subfolders mounted in /filesOnServer
      ## * compose => generate from compose projects present on machine (requires DOCKER_HOST+socket-proxy or mounting /var/run/docker.sock)
      - STACKS_FROM=compose
      - DOCKER_HOST=tcp://socket-proxy:2375

      ## optional
      #- TZ=America/New_York
      #- IMAGE_REGISTRY_PROVIDER=
      #- IMAGE_REGISTRY_ACCOUNT=
      #- AUTO_UPDATE=false
      #- POLL_FOR_UPDATE=false
      #- KOMODO_ENV_NAME=
      #- COMPOSE_FILE_GLOB=
      #- ENV_FILE_GLOB=
      #- API_KEY=
      #- API_SECRET=
    restart: no
  socket-proxy:
    image: lscr.io/linuxserver/socket-proxy:latest
    environment:
      - CONTAINERS=1
      - INFO=1
      - POST=0
      - PING=1
      - VERSION=1
    volumes:
          - /var/run/docker.sock:/var/run/docker.sock:ro
    read_only: true
    tmpfs:
      - /run

@github-actions
Copy link
Contributor

📦 A new release has been made for this pull request.

To play around with this PR, pull an image:

  • foxxmd/komodo-import:pr-3

Images are available for x86_64 and ARM64.

Latest commit: fa3899c

@FoxxMD FoxxMD merged commit dc9d377 into main Aug 21, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants