balena-io-modules / balena-compose

Complete toolkit for building docker-compose.yml files and optionally deploy them on balenaCloud
Apache License 2.0
8 stars 1 forks source link

Composition validation allows volumes with relative paths #55

Open pipex opened 2 months ago

pipex commented 2 months ago

Example

version: '2'
services:
  data:
    build: ./data
    expose:
      - '8080'
    volumes:
      - my-data:./other-data
      - my-other-volume:$HOME/data

volumes:
  my-data:
  my-other-volume:

Is allowed by balena-compose but causes the supervisor to fail container creation with

(HTTP code 500) server error - invalid volume specification