Difference between revisions of "Depends on:"

From wikieduonline
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
 +
* https://docs.docker.com/compose/compose-file/compose-file-v3/#depends_on
  
 +
<pre>
 +
version: "3.8"
 +
services:
 +
  web:
 +
    build: .
 +
    depends_on:
 +
      - db
 +
      - redis
 +
  redis:
 +
    image: redis
 +
  db:
 +
    image: postgres
 +
</pre>
  
  
 +
== Related ==
 
* [[Terraform meta-argument: depends_on]]
 
* [[Terraform meta-argument: depends_on]]
 
  
 
== See also ==
 
== See also ==

Latest revision as of 10:03, 21 April 2024

version: "3.8"
services:
  web:
    build: .
    depends_on:
      - db
      - redis
  redis:
    image: redis
  db:
    image: postgres


Related[edit]

See also[edit]

Advertising: