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

Configure volume for containers

waaghals opened this issue · comments

  • Allow absolute paths configured in user config
  • Error when volume is not known in main config

Example configuration:

# toip.yaml
containers:
  container_with_volumes:
    image: ...
    volumes:
      /absolute/path/in/container: volume_a
      /path: volume_b

  other_container:
    image: ...
    mounts:
      /path: volume_b
      /other/path: volume_c

volumes:
  volume_a:
    source: relative/path/relative/to/config/file
    readonly: true
  volume_b: 
    source: shared/between/containers
  volume_c:
    name: anonymous
  volume_d:
    name: ${ENV_VAR}
    external: true
  volume_e: 
    source: ${HOME}/in/home/dir