-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use images, which are build in the same stack? #1548
Comments
Just like this :
The build process will use cache for the 2 last services, and will be very quick. |
That does work, but I suspect you're trying to launch some sort of development environment. If that's true, I find more effective to use a prebuilt interpreter image (i.e. ruby, php, etc) which should run an app from a specific folder in the container, into which you could mount your app code. This way you'd be spared from building the entire app container whenever your code changes. I have an example rails project using docker-compose that you can check out. |
@josephpage As said, this leads to other problems, see #1175 for details.
@vovimayhem We're using that approach in development and it's fine to use host-volumes there, but unfortunately that's no solution for production environments. I switched to two builds for now, just in case if you're asking yourself about the setup ... the |
We added a new flag to It will be in the 1.5.0 release, and is in master builds now (https://dl.bintray.com/docker-compose/master/) |
continued from #1175
I have this
docker-compose.yml
in a folder calledtestapp
.When pulling images with
docker-compose pull
I get the following error (in 1.2 only in verbose mode):I didn't really notice this behavior until
1.3rc2
, because docker-compose will now throw an error instead of failing silently without error.So my question is, how to use images, which are build in the same stack?
As discussed in the issue above, I don't want to build/tag multiple images or even use different images for the services.
The text was updated successfully, but these errors were encountered: