waaghals / toip

Configure your development tools as containers. Allows all developers to use the exact same tooling without having to install or manage them manually. Run them as if they are install locally.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Modify configuration using .env substitution

waaghals opened this issue · comments

Allow values to be env substituted. Loads .env and uses processes available env vars.

Example:

aliases:
  ...
containers:
  container_a:
    image:
      context: .
      target: ${TARGET}
    cmd: ${COMMAND_TARGET}
    volumes:
      /app: ${VOLUME_NAME:-path_substitution}
    env:
      CONTAINER_VARIABLE: ${ENV_FROM_HOST}
    workdir: ${WORKDIR}
  container_b:
    image: some_image:${TAG}
  container_c:
    image: ${IMAGE}
volumes:
  path_substitution:
    source: ${PATH}/more
    readonly: true
  name_substitution:
    name: ${VOLUME_NAME?missing volume}