can someone port my docker-compose to a proper one for use with resin?
yaml is on the same folder as laravel project and contains an nginx.conf file
i prefer to use only docker-compose and not Dockerfiles with no specific reason
ok i changed my volumes to short syntax
php:
image: php:7-fpm-alpine
volumes:
- ./:/project
links:
- db
and now when i push to resin i get this message
[Error] Could not parse compose file
[Error] Missing volume definition for ‘./’
[Error] Not deploying release.
i have banging my head reading the docs
where do i specify the source of the data-volume ?
what wil be mounted on the /usr/src/app/tmp on the cointainer?
docker will generate a random folder and mount this folder?
i want to mount my project in the cointaner
Keep in mind that whatever you build on resin will be deployed to the devices by means of the resin API, so what will actually get to the device will be the docker-compose (in a modified version for the supervisor on the device to understand) with the corresponding docker images.
This means that your local development folder will not exist there, so you can’t bind mount your development folder into the container.
So I understand you prefer not to have Dockerfiles with no specific reason, but here the reason is that the way the code gets deployed to your fleet is via images, and therefore you need to use a Dockerfile rather than mounts.
so to get it straight
i have to build a custom container witch will include my project files?
and my project will reside inside the container and then be pulled by my device?
That’s absolutely correct, you’ll need to make your project files available via a container (although there’s nothing stopping you copying them to a named volume on startup and then sharing them with other containers).
ok thanks for the clearing this up.
i think this was not obvious on the documentation and on the examples on github but i guess i am not so experienced in docker to figure this out by my self.