qnap-dev / container-apps

Apache License 2.0
80 stars 218 forks source link

build instruction does not work in docker-compose.yml #47

Closed mchauvel closed 6 years ago

mchauvel commented 6 years ago

When trying to make my own LAMP template, i try to replace image: php:7.1-apache by

build: ./php
dockerfile: Dockerfile-php71

but i always have this error : Background task error for application: 'image'

the same docker-compose.yml works with command line (ssh on the NAS): docker-compose up

i've also tried with docker compose v2 without success :(

PS : is there a way to specify a dynamic name(via wizard?) in order to instanciate many times the same APP ? (docker-compose -p DYN_NAME up)

fcwu commented 6 years ago

@e1ee1e11

May you try to fix this that change current working directory to application working directory?

e1ee1e11 commented 6 years ago

[root cause] CS only accept 'image' instruction in docker-compose.yml

[solution] Accept 'build' instruction

[revision] fixed in the next release version (CS v1.8)