Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • I'm happy to move the seeding of the database into a build phase (as opposed to a deploy phase), but then does that mean "docker-compose up" is doing both a build and deploy each time it is run? Commented Feb 27, 2020 at 18:07
  • no, for build you should call docker-compose -p production -f docker-compose.yml build Commented Feb 27, 2020 at 19:02
  • But if "docker-compose up" doesn't build anything, why do I see images downloaded in the docker console and then I'm able to access my services on the various ports? Commented Feb 27, 2020 at 22:05
  • It use images that available at the host (if you have image: in yml for service) and in case of no image at host it pulls image from repo and in case no "image:" in yml it builds according to "build:" Commented Feb 28, 2020 at 10:09