docker - How can I start one container before other? - Stack Overflow (https://cdn.sstatic.net/Sites/stackoverflow/Img/favicon.ico?v=ec617d715196) (https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon.png?v=c78bd457575a) (https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon.png?v=c78bd457575a) (Stack Overflow) (/opensearch.xml) (https://stackoverflow.com/questions/55960072/how-can-i-start-one-container-before-other) (https://cdn.sstatic.net/Shared/stacks.css?v=bd2aba62c5a4) (https://cdn.sstatic.net/Sites/stackoverflow/primary.css?v=7d8876444382) (Feed for question 'How can I start one container before other?') (/feeds/question/55960072) (https://cdn.sstatic.net/Shared/Channels/channels.css?v=5981bb1a5bd7) (https://accounts.google.com/gsi/style) (site logo) Join Stack Overflow By clicking “Sign up”, you agree to our (/legal/terms-of-service/public) terms of service and acknowledge you have read our (/legal/privacy-policy) privacy policy . (9b9d1ff1208457cf29de4d03e17fc06b55f301e0c5c48e7398c73e63b318268a) (1) (2.0) Sign up with Google Sign up with GitHub OR (9b9d1ff1208457cf29de4d03e17fc06b55f301e0c5c48e7398c73e63b318268a) (1) () () () () () () Email Password (8+ characters (at least 1 letter & 1 number)) Sign up Already have an account? (/users/login) Log in (9b9d1ff1208457cf29de4d03e17fc06b55f301e0c5c48e7398c73e63b318268a) () Skip to main content (https://stackoverflow.com) Stack Overflow (https://stackoverflow.co/) About Products (https://stackoverflow.co/teams/ai/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav-bar&utm_content=overflowai) OverflowAI (https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=stack-overflow-for-teams) Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers (https://stackoverflow.co/advertising/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=stack-overflow-advertising) Advertising & Talent Reach devs & technologists worldwide about your product, service or employer brand (https://stackoverflow.co/teams/ai/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=overflow-ai) OverflowAI GenAI features for Teams (https://stackoverflow.co/api-solutions/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=overflow-api) OverflowAPI Train & fine-tune LLMs (https://stackoverflow.co/labs/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=labs) Labs The future of collective knowledge sharing (https://stackoverflow.co/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=about-the-company) About the company (https://stackoverflow.blog/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=blog) Visit the blog (Search…) () Loading… (https://stackoverflow.com) current community (https://stackoverflow.com) (Stack Overflow) Stack Overflow (https://stackoverflow.com/help) help (https://chat.stackoverflow.com/?tab=site&host=stackoverflow.com) chat (https://meta.stackoverflow.com) (Meta Stack Overflow) Meta Stack Overflow your communities (https://stackoverflow.com/users/signup?ssrc=site_switcher&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f55960072%2fhow-can-i-start-one-container-before-other) Sign up or (https://stackoverflow.com/users/login?ssrc=site_switcher&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f55960072%2fhow-can-i-start-one-container-before-other) log in to customize your list. (https://stackexchange.com/sites) more stack exchange communities (https://stackoverflow.blog) company blog (Click to show search) (https://stackoverflow.com/users/login?ssrc=head&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f55960072%2fhow-can-i-start-one-container-before-other) Log in (https://stackoverflow.com/users/signup?ssrc=head&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f55960072%2fhow-can-i-start-one-container-before-other) Sign up Let's set up your homepage Select a few topics you're interested in: python javascript c# reactjs java android html flutter c++ node.js typescript css r php angular next.js spring-boot machine-learning sql excel ios azure docker Or search from our full list: (Search) javascript python java c# php android html jquery c++ css ios sql mysql r reactjs node.js arrays c asp.net json python-3.x .net ruby-on-rails sql-server swift django angular objective-c excel pandas angularjs regex typescript ruby linux ajax iphone vba xml laravel spring asp.net-mvc database wordpress string flutter postgresql mongodb wpf windows amazon-web-services xcode bash git oracle-database spring-boot dataframe azure firebase list multithreading docker vb.net react-native eclipse algorithm powershell macos visual-studio numpy image forms scala function vue.js performance twitter-bootstrap selenium winforms kotlin loops express dart hibernate sqlite matlab python-2.7 shell rest apache entity-framework android-studio csv maven api linq qt dictionary unit-testing facebook asp.net-core tensorflow apache-spark file swing class unity-game-engine sorting date authentication go symfony t-sql opencv matplotlib .htaccess google-chrome for-loop datetime codeigniter http perl validation sockets google-maps object uitableview xaml oop if-statement visual-studio-code cordova ubuntu web-services email android-layout github elasticsearch spring-mvc kubernetes selenium-webdriver ms-access user-interface parsing ggplot2 pointers machine-learning google-sheets c++11 security flask google-apps-script ruby-on-rails-3 templates nginx variables exception sql-server-2008 gradle debugging tkinter listview delphi jpa asynchronous pdf web-scraping haskell jsp ssl amazon-s3 google-cloud-platform jenkins testing xamarin wcf npm batch-file generics ionic-framework network-programming unix recursion google-app-engine mongoose visual-studio-2010 .net-core android-fragments assembly animation math next.js session svg hadoop intellij-idea curl django-models join laravel-5 rust winapi url heroku http-redirect tomcat google-cloud-firestore inheritance webpack keras image-processing gcc asp.net-mvc-4 web logging dom swiftui matrix pyspark actionscript-3 button post optimization firebase-realtime-database jquery-ui iis cocoa xpath d3.js javafx firefox internet-explorer xslt caching select asp.net-mvc-3 opengl events asp.net-web-api plot dplyr magento encryption search stored-procedures amazon-ec2 ruby-on-rails-4 memory canvas audio multidimensional-array jsf random vector cookies redux facebook-graph-api input flash xamarin.forms indexing arraylist ipad cocoa-touch data-structures video apache-kafka model-view-controller serialization jdbc woocommerce routes razor azure-devops awk servlets mod-rewrite beautifulsoup docker-compose excel-formula iframe filter aws-lambda design-patterns text django-rest-framework visual-c++ cakephp mobile android-intent react-hooks struct methods groovy mvvm ssh lambda checkbox ecmascript-6 google-chrome-extension time grails installation sharepoint cmake shiny spring-security jakarta-ee android-recyclerview plsql core-data types meteor android-activity sed bootstrap-4 websocket activerecord graph replace scikit-learn file-upload group-by vim junit boost deep-learning import sass memory-management error-handling async-await dynamic eloquent soap silverlight dependency-injection charts layout apache-spark-sql deployment browser gridview svn while-loop google-bigquery vuejs2 ffmpeg dll highcharts view foreach plugins makefile c#-4.0 redis reporting-services jupyter-notebook merge server unicode https reflection google-maps-api-3 twitter oauth-2.0 extjs pytorch axios terminal pip split mysqli cmd django-views encoding database-design automation collections netbeans hash build data-binding ember.js tcp sqlalchemy pdo apache-flex concurrency entity-framework-core command-line spring-data-jpa printing java-8 react-redux jestjs service html-table neo4j lua ansible parameters module material-ui enums visual-studio-2012 promise flexbox outlook webview firebase-authentication web-applications uwp jquery-mobile utf-8 datatable python-requests parallel-processing drop-down-menu colors scroll hive tfs scipy count syntax ms-word twitter-bootstrap-3 ssis google-analytics fonts three.js constructor powerbi rxjs graphql file-io paypal discord cassandra socket.io graphics compiler-errors gwt react-router nlp solr url-rewriting backbone.js memory-leaks datatables oauth datagridview terraform drupal oracle11g zend-framework neural-network knockout.js triggers django-forms interface google-api angular-material casting jmeter linked-list path proxy timer django-templates arduino orm directory visual-studio-2015 parse-platform windows-phone-7 cron push-notification conditional-statements primefaces functional-programming pagination model jar xamarin.android hyperlink uiview visual-studio-2013 gitlab vbscript google-cloud-functions azure-active-directory jwt download swift3 sql-server-2005 configuration process rspec pygame properties combobox callback windows-phone-8 linux-kernel safari permissions scrapy raspberry-pi scripting emacs clojure x86 scope io compilation mongodb-query nhibernate responsive-design angularjs-directive expo request azure-functions bluetooth 3d dns binding reference discord.js architecture playframework version-control pyqt doctrine-orm package pycharm get sql-server-2012 rubygems f# autocomplete datepicker openssl kendo-ui tree jackson controller yii grep nested xamarin.ios static dockerfile statistics transactions datagrid null active-directory uiviewcontroller phpmyadmin webforms discord.py notifications sas computer-vision duplicates mocking youtube nullpointerexception yaml menu sum bitmap electron asp.net-mvc-5 visual-studio-2008 time-series blazor yii2 jsf-2 css-selectors stl android-listview floating-point cryptography ant stream hashmap character-encoding msbuild sdk asp.net-core-mvc google-drive-api selenium-chromedriver jboss joomla navigation cors devise anaconda background camera multiprocessing pyqt5 binary frontend cuda linq-to-sql iterator mariadb onclick plotly ios7 rabbitmq android-jetpack-compose android-asynctask microsoft-graph-api tabs laravel-4 insert uicollectionview environment-variables amazon-dynamodb linker console xsd coldfusion upload continuous-integration ftp textview opengl-es operating-system vuejs3 mockito localization xml-parsing macros formatting json.net kivy type-conversion data.table timestamp calendar integer segmentation-fault android-ndk drag-and-drop prolog char crash jasmine automated-tests dependencies geometry android-gradle-plugin itext firebase-cloud-messaging header fortran sprite-kit mfc attributes nuxt.js nosql format azure-pipelines nestjs odoo jquery-plugins db2 jenkins-pipeline leaflet event-handling postman flutter-layout julia annotations keyboard textbox arm visual-studio-2017 gulp libgdx stripe-payments xampp synchronization crystal-reports timezone dom-events azure-web-app-service android-emulator uikit swagger wso2 sequelize.js namespaces aggregation-framework uiscrollview jvm google-sheets-formula chart.js com subprocess geolocation webdriver centos html5-canvas widget dialog garbage-collection snowflake-cloud-data-platform numbers concatenation sql-update qml set windows-10 mapreduce tuples smtp ionic2 java-stream rotation modal-dialog spring-data android-edittext http-headers doctrine radio-button nuget grid sonarqube lucene xmlhttprequest internationalization listbox components initialization switch-statement google-play apache-camel boolean serial-port ldap ios5 youtube-api return gdb pivot eclipse-plugin latex frameworks tags containers github-actions dataset asp-classic subquery foreign-keys label copy uinavigationcontroller c++17 delegates google-cloud-storage struts2 migration base64 protractor find sql-server-2008-r2 queue uibutton embedded arguments composer-php append jaxb zip stack cucumber autolayout ide entity-framework-6 popup iteration airflow windows-7 r-markdown ssl-certificate vb6 tailwind-css gmail hover jqgrid g++ udp Next You’ll be prompted to create an account to view your personalized homepage. (/) Home (/questions) Questions (/tags) Tags (/users) Users (https://stackoverflow.com/jobs/companies?so_medium=stackoverflow&so_source=SiteNav) Companies Labs (/jobs?source=so-left-nav) Jobs (/beta/discussions) Discussions Collectives Communities for your favorite technologies. (/collectives-all) Explore all Collectives Teams () Ask questions, find answers and collaborate at work with Stack Overflow for Teams. (https://stackoverflowteams.com/teams/create/free/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams) Try Teams for free (https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams) Explore Teams Teams Ask questions, find answers and collaborate at work with Stack Overflow for Teams. (https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams-compact) Explore Teams Collectives™ on Stack Overflow Find centralized, trusted content and collaborate around the technologies you use most. (/collectives) Learn more about Collectives Teams Q&A for work Connect and share knowledge within a single location that is structured and easy to search. (https://stackoverflow.co/teams/) Learn more about Teams Get early access and see previews of new features. (https://stackoverflow.co/labs/) Learn more about Labs (Illustration of upvote icon after it is clicked) Hang on, you can't upvote just yet. You'll need to complete a few actions and gain 15 reputation points before being able to upvote. Upvoting indicates when questions and answers are useful. (https://stackoverflow.com/help/whats-reputation) What's reputation and how do I get it? Instead, you can save this post to reference later. Save this post for later Not now (https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon.png?v=c78bd457575a) (/questions/55960072/how-can-i-start-one-container-before-other) How can I start one container before other? (/questions/ask) Ask Question (2019-05-02 20:51:20Z) Asked 5 years, 10 months ago Modified (?lastactivity) (2019-05-03 03:04:32Z) 5 years, 10 months ago (Viewed 202 times) Viewed 202 times This question shows research effort; it is useful and clear (70:3:31e,16:fcd7a1eea962a4ba,10:1742104694,16:7ed7af633123496c,8:55960072,78b77a46f16bc953566a4a7384834c2e3f54873eee546f79a79c9b71eb6cd500) 0 (This question does not show any research effort; it is unclear or not useful) (70:3:31e,16:2174c4d15882a7e7,10:1742104694,16:699f0c37ebe03d03,8:55960072,27e5ae4135428af77d7b563f21327246ffdf95ac96d50e3826ab3139e8556299) Save this question. (/posts/55960072/timeline) Show activity on this post. I need to start backend-container after start database-container . How can I do it with docker-compose? (/questions/tagged/docker) (show questions tagged 'docker') docker (/questions/tagged/docker-compose) (show questions tagged 'docker-compose') docker-compose (/q/55960072) (Short permalink to this question) Share Share a link to this question Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/55960072/edit) () Improve this question Follow (70:3:31e,16:1c9bc1ee80d0393d,10:1742104694,16:ce026bbc22616c7b,8:55960072,cf4e3950b4efefc6bd43da334b06b181cd77b5c791a2454b1d2e87d84cb3b25b) Follow this question to receive notifications asked (2019-05-02 20:51:20Z) May 2, 2019 at 20:51 (/users/6205880/andrey-kadnikov) (Andrey Kadnikov's user avatar) (/users/6205880/andrey-kadnikov) Andrey Kadnikov Andrey Kadnikov (reputation score) 465 (6 silver badges) 6 6 silver badges (17 bronze badges) 17 17 bronze badges (Use comments to ask for more information or suggest improvements. Avoid answering questions in comments.) Add a comment | (Expand to show all comments on this post) 3 Answers 3 Sorted by: (/questions/55960072/how-can-i-start-one-container-before-other?answertab=scoredesc#tab-top) Reset to default (scoredesc) Highest score (default) (trending) Trending (recent votes count more) (modifieddesc) Date modified (newest first) (createdasc) Date created (oldest first) This answer is useful (70:3:31e,16:026d4ed131c780e1,10:1742104694,16:52e132ec66effeed,8:55960143,695c083cebcf43ec91ff5c2c78e99feda27ec532c34718c5a46d875a8f677ca8) 0 (This answer is not useful) (70:3:31e,16:74ef3c618d15c55e,10:1742104694,16:144f86851cf27a98,8:55960143,cf7535d2a62385bf58859f9a05b82f0438b09629c54b623c665718198a59f89c) Save this answer. (Loading when this answer was accepted…) (/posts/55960143/timeline) Show activity on this post. Use a depends_on clause on your backend-container. Something like that : version: "3.7" services: web: build: . depends_on: - db db: image: postgres (https://docs.docker.com/compose/compose-file/#depends_on) Here is the documentation about it. Have fun! (/a/55960143) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/55960143/edit) () Improve this answer Follow (70:3:31e,16:e266084055599343,10:1742104694,16:e4330838d881e2a3,8:55960143,99806bb114e6c33e0108949ef7d5e3bb293d10cabc78f923ee6d06c94d3dd6fe) Follow this answer to receive notifications answered (2019-05-02 20:57:50Z) May 2, 2019 at 20:57 (/users/11360264/schisme) (Schisme's user avatar) (/users/11360264/schisme) Schisme Schisme (reputation score) 463 (2 silver badges) 2 2 silver badges (6 bronze badges) 6 6 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:f2e4ef12056cacd7,10:1742104694,16:f30644d85a703454,8:55960139,fc7dbca8df072666fb5b1a7a79bce718fe040f535b0f24084058478c736d48d7) 0 (This answer is not useful) (70:3:31e,16:e5cd46cb418fb37d,10:1742104694,16:ab63c5c0f761f2ff,8:55960139,43d0ec6f3d7b587e01bdb9b33cdb17c9bfb451d46931aee826a69ec1dff459bb) Save this answer. (Loading when this answer was accepted…) (/posts/55960139/timeline) Show activity on this post. You should look into the (https://docs.docker.com/compose/compose-file/#depends_on) depends_on configuration for docker compose. In short, you should be able to do something like: services: database-container: # configuration backend-container: depends_on: - database-container # configuration (/a/55960139) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/55960139/edit) () Improve this answer Follow (70:3:31e,16:02f92479e1a944eb,10:1742104694,16:08b358f0d5097a03,8:55960139,abf1a9b367625f993f72717e1aea14af91fae853d6dd369d5cead0c95b0d7d9d) Follow this answer to receive notifications answered (2019-05-02 20:57:05Z) May 2, 2019 at 20:57 (/users/8061723/erik-tate) (Erik Tate's user avatar) (/users/8061723/erik-tate) Erik Tate Erik Tate (reputation score) 161 (4 bronze badges) 4 4 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:7c159f36b19bbf96,10:1742104694,16:2bd7060a46addd59,8:55962772,8e8151e33c6d2588829842cd025c90bdd9a662d2447ac19066eccb97815a13b8) 0 (This answer is not useful) (70:3:31e,16:a80cf287c543fa2d,10:1742104694,16:502a115565b24f8e,8:55962772,e543eb066c5c9906f57725e7e63da4b2d4eeafe5ccefeb812832219740d55106) Save this answer. (Loading when this answer was accepted…) (/posts/55962772/timeline) Show activity on this post. The depends_on field will work with docker-compose , but you will find it is not supported if you upgrade to swarm mode. It also guarantees the database container is created, but not necessarily ready to receive connections. For that, there are several options: Let the backend container fail and configure a restart policy. This is ugly, leads to false errors being reported, but it's also the easiest to implement. Perform a connection from your app with a retry loop, a sleep between retries, and a timeout in case the database doesn't start in a timely fashion. This is usually my preferred method, but it requires a change to your application. Use an entrypoint script with a command like (https://github.com/vishnubob/wait-for-it) wait-for-it.sh that waits for a remote resource to become available, and once that command succeeds, launch your app. This doesn't cover all the scenarios as a complete client connection, but can be less intrusive to implement since it only requires changes to an entrypoint script rather than the app itself. (/a/55962772) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/55962772/edit) () Improve this answer Follow (70:3:31e,16:24211290714e479c,10:1742104694,16:7daa96b262d39c7a,8:55962772,4a8ef25f96733716799b80c09c8b0c25d797fafd8e3c72947c3ee944af240fa3) Follow this answer to receive notifications answered (2019-05-03 03:04:32Z) May 3, 2019 at 3:04 (/users/596285/bmitch) (BMitch's user avatar) (/users/596285/bmitch) BMitch BMitch (reputation score 265,278) 265k (50 gold badges) 50 50 gold badges (542 silver badges) 542 542 silver badges (499 bronze badges) 499 499 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) (55960072) (false) () Your Answer (True) Thanks for contributing an answer to Stack Overflow! Please be sure to answer the question . Provide details and share your research! But avoid … Asking for help, clarification, or responding to other answers. Making statements based on opinion; back them up with references or personal experience. To learn more, see our (/help/how-to-answer) tips on writing great answers . Draft saved Draft discarded (9b9d1ff1208457cf29de4d03e17fc06b55f301e0c5c48e7398c73e63b318268a) Sign up or (/users/login?ssrc=question_page&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f55960072%2fhow-can-i-start-one-container-before-other%23new-answer) log in Sign up using Google Sign up using Email and Password (false) (false) Submit Post as a guest Name () () Email Required, but never shown () () Post as a guest Name () () Email Required, but never shown () () Post Your Answer Discard By clicking “Post Your Answer”, you agree to our (https://stackoverflow.com/legal/terms-of-service/public) terms of service and acknowledge you have read our (https://stackoverflow.com/legal/privacy-policy) privacy policy .(1) Start asking to get answers Find the answer to your question by asking. (/questions/ask) Ask question Explore related questions (/questions/tagged/docker) (show questions tagged 'docker') docker (/questions/tagged/docker-compose) (show questions tagged 'docker-compose') docker-compose See similar questions with these tags. The Overflow Blog (https://stackoverflow.blog/2025/03/14/can-climate-tech-startups-address-the-current-crisis/?cb=1) Can climate tech startups address the current crisis? (https://stackoverflow.blog/2025/03/14/what-we-learned-at-tdx-2025/?cb=1) What we learned at TDX 2025 Featured on Meta (Meta Stack Exchange) (https://meta.stackexchange.com/questions/407321/community-asks-sprint-announcement-march-2025?cb=1) Community Asks Sprint Announcement - March 2025 (Meta Stack Exchange) (https://meta.stackexchange.com/questions/407425/meta-stack-exchange-site-maintenance-scheduled-starting-monday-march-17-2025-f?cb=1) (Meta Stack Exchange site maintenance scheduled starting Monday, March 17, 2025 from 13:30 UTC to 14:30 UTC (9:30am to 10:30am ET)) Meta Stack Exchange site maintenance scheduled starting Monday, March 17,... (Meta Stack Overflow) (https://meta.stackoverflow.com/questions/432989/is-it-better-to-redirect-users-who-attempt-to-perform-actions-they-cant-yet-tak?cb=1) (Is it better to redirect users who attempt to perform actions they can't yet take?) Is it better to redirect users who attempt to perform actions they can't yet... (Meta Stack Overflow) (https://meta.stackoverflow.com/questions/433034/stacks-editor-development-and-testing?cb=1) Stacks Editor development and testing Related (https://stackoverflow.com/q/31746182?rq=3) (Question score (upvotes - downvotes)) 672 (https://stackoverflow.com/questions/31746182/docker-compose-wait-for-container-x-before-starting-y?rq=3) Docker Compose wait for container X before starting Y (https://stackoverflow.com/q/40202861?rq=3) (Question score (upvotes - downvotes)) 3 (https://stackoverflow.com/questions/40202861/how-to-make-container-wait-for-other-container-in-docker-compose?rq=3) How to make container wait for other container in Docker Compose (https://stackoverflow.com/q/48684609?rq=3) (Question score (upvotes - downvotes)) 2 (https://stackoverflow.com/questions/48684609/control-startup-order-in-docker-compose?rq=3) Control startup order in Docker-Compose (https://stackoverflow.com/q/51152478?rq=3) (Question score (upvotes - downvotes)) 8 (https://stackoverflow.com/questions/51152478/run-docker-container-after-the-other-container-exits?rq=3) Run docker container after the other container exits (https://stackoverflow.com/q/52668675?rq=3) (Question score (upvotes - downvotes)) 2 (https://stackoverflow.com/questions/52668675/problem-when-trying-to-start-services-with-my-docker-compose-file-one-service-r?rq=3) Problem when trying to start services with my docker-compose file, one service randomly starts before another (https://stackoverflow.com/q/54531447?rq=3) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/54531447/how-to-make-a-second-container-not-run-until-the-first-one-is-already-started-in?rq=3) How to make a second container not run until the first one is already started in the docker-compose? (https://stackoverflow.com/q/54561020?rq=3) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/54561020/how-to-order-docker-container-starting?rq=3) How to order docker container starting? (https://stackoverflow.com/q/61323641?rq=3) (Question score (upvotes - downvotes)) 1 (https://stackoverflow.com/questions/61323641/docker-compose-wait-for-a-container-to-be-run-before-running-another-container?rq=3) docker-compose: wait for a container to be run before running another container (https://stackoverflow.com/q/62483375?rq=3) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/62483375/how-start-2-containers-docker-at-the-same-time?rq=3) How start 2 containers docker at the same time (https://stackoverflow.com/q/63558724?rq=3) (Question score (upvotes - downvotes)) 8 (https://stackoverflow.com/questions/63558724/docker-compose-start-container-after-another-with-timeout?rq=3) Docker-compose: Start container after another with timeout (https://stackexchange.com/questions?tab=hot) Hot Network Questions (Travel Stack Exchange) (https://travel.stackexchange.com/questions/193733/flying-from-germany-to-poland-and-back-without-schengen-visa) Flying from Germany to Poland and back without Schengen visa (Role-playing Games Stack Exchange) (https://rpg.stackexchange.com/questions/214979/can-an-action-surging-7-eldritch-knight-cast-two-cantrips-with-war-magic) Can an Action Surging 7+ Eldritch Knight cast two cantrips with War Magic? (Mathematica Stack Exchange) (https://mathematica.stackexchange.com/questions/311562/how-to-return-data-only-from-a-memoized-cached-variable) How to return data only from a memoized, cached variable (Retrocomputing Stack Exchange) (https://retrocomputing.stackexchange.com/questions/31413/does-applesoft-basic-really-parse-le-then-as-let-hen) Does AppleSoft BASIC really parse "LE THEN" as "LET HEN"? (Philosophy Stack Exchange) (https://philosophy.stackexchange.com/questions/123464/is-it-ethical-to-try-our-best-in-taking-the-perspective-of-the-individual-before) Is it ethical to try our best in taking the perspective of the individual before proceeding moral reasoning on them? (French Language Stack Exchange) (https://french.stackexchange.com/questions/55656/the-dos-and-donts-of-do-in-french) The do's and don'ts of do in French (Mathematics Stack Exchange) (https://math.stackexchange.com/questions/5045737/if-a-subset-of-a-vector-space-is-also-a-vector-space-is-it-automatically-a-subs) If a subset of a vector space is also a vector space, is it automatically a subspace? (Aviation Stack Exchange) (https://aviation.stackexchange.com/questions/108198/why-starting-a-jet-engine-is-unrecommended-in-tailwind-conditions) Why starting a jet engine is unrecommended in tailwind conditions (Worldbuilding Stack Exchange) (https://worldbuilding.stackexchange.com/questions/265329/ancient-artificial-wombs) Ancient Artificial Wombs (Linguistics Stack Exchange) (https://linguistics.stackexchange.com/questions/49852/in-spanish-why-is-the-u-in-gue-and-que-silent) In Spanish, why is the 'u' in 'gue' and 'que' silent? (English Language Learners Stack Exchange) (https://ell.stackexchange.com/questions/363141/where-have-you-been-for-two-years) "Where have you been for two years"? (Unix & Linux Stack Exchange) (https://unix.stackexchange.com/questions/792526/sed-delete-everything-after-a-word) Sed delete everything after a word (Super User) (https://superuser.com/questions/1886312/what-is-the-virtual-documents-directory-on-linux) What is the ".virtual_documents" directory on Linux? (Electrical Engineering Stack Exchange) (https://electronics.stackexchange.com/questions/741495/a-problem-with-the-basics-of-opamps) A Problem with the Basics of OpAmps (MathOverflow) (https://mathoverflow.net/questions/489416/do-two-polynomials-whose-coefficients-are-the-same-up-to-permutation-satisfy-thi) Do two polynomials whose coefficients are the same up to permutation satisfy this relation? (Latin Language Stack Exchange) (https://latin.stackexchange.com/questions/24522/how-do-you-say-take-your-medicine-in-latin-do-you-use-the-verb-capio-as-in) How do you say "take your medicine" in Latin? Do you use the verb "capio" (as in English)? Or do you use "bibo" (as in Croatian)? Or something else? (Law Stack Exchange) (https://law.stackexchange.com/questions/107793/can-an-insurance-company-legally-sell-an-unclaimable-policy) Can an insurance company legally sell an unclaimable policy? (TeX - LaTeX Stack Exchange) (https://tex.stackexchange.com/questions/739028/how-to-draw-a-circle-inscribed-in-a-quadrangle-in-tikz) How to draw a circle inscribed in a quadrangle in TikZ (Electrical Engineering Stack Exchange) (https://electronics.stackexchange.com/questions/741550/why-always-one-diode-takes-up-all-the-voltage-drop-in-a-series-of-diodes) Why always one diode takes up all the voltage drop in a series of diodes? (Puzzling Stack Exchange) (https://puzzling.stackexchange.com/questions/130962/impossible-but-light-maths-puzzle) Impossible but light maths puzzle (Electrical Engineering Stack Exchange) (https://electronics.stackexchange.com/questions/741567/ac-behavior-of-capacitor-can-a-capacitor-start-out-giving-of-energy) AC behavior of capacitor: Can a capacitor start out giving of energy? (Seasoned Advice) (https://cooking.stackexchange.com/questions/130343/what-is-the-highest-temperature-the-butter-can-be-used-for-baking-at) What is the highest temperature the butter can be used for baking at? (Quantum Computing Stack Exchange) (https://quantumcomputing.stackexchange.com/questions/41441/why-must-we-remove-garbage-for-interference-tests-graph-isomorphism-example) Why Must We Remove Garbage for Interference Tests? Graph Isomorphism example (Politics Stack Exchange) (https://politics.stackexchange.com/questions/91024/has-russia-ever-explained-its-u-turn-on-going-to-war-with-ukraine) Has Russia ever explained its U-turn on going to war with Ukraine? (/feeds/question/55960072) (Feed of this question and its answers) Question feed Subscribe to RSS Question feed To subscribe to this RSS feed, copy and paste this URL into your RSS reader. (https://stackoverflow.com/feeds/question/55960072) () lang-yaml (https://stackoverflow.com) (https://stackoverflow.com) Stack Overflow (/questions) Questions (/help) Help (https://chat.stackoverflow.com/?tab=site&host=stackoverflow.com) Chat (https://stackoverflow.co/) Products (https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=footer&utm_content=teams) Teams (https://stackoverflow.co/advertising/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=footer&utm_content=advertising) Advertising (https://stackoverflow.co/advertising/employer-branding/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=footer&utm_content=talent) Talent (https://stackoverflow.co/) Company (https://stackoverflow.co/) About (https://stackoverflow.co/company/press/) Press (https://stackoverflow.co/company/work-here/) Work Here (https://stackoverflow.com/legal) Legal (https://stackoverflow.com/legal/privacy-policy) Privacy Policy (https://stackoverflow.com/legal/terms-of-service/public) Terms of Service (/contact) Contact Us Your Privacy Choices (https://stackoverflow.com/legal/cookie-policy) Cookie Policy (https://stackexchange.com) Stack Exchange Network (https://stackexchange.com/sites#technology) Technology (https://stackexchange.com/sites#culturerecreation) Culture & recreation (https://stackexchange.com/sites#lifearts) Life & arts (https://stackexchange.com/sites#science) Science (https://stackexchange.com/sites#professional) Professional (https://stackexchange.com/sites#business) Business (https://api.stackexchange.com/) API (https://data.stackexchange.com/) Data (https://stackoverflow.blog?blb=1) Blog (https://www.facebook.com/officialstackoverflow/) Facebook (https://twitter.com/stackoverflow) Twitter (https://linkedin.com/company/stack-overflow) LinkedIn (https://www.instagram.com/thestackoverflow) Instagram Site design / logo © 2025 Stack Exchange Inc; user contributions licensed under (https://stackoverflow.com/help/licensing) CC BY-SA . rev 2025.3.14.23880