Difference between revisions of "Depends on:"

From wikieduonline
Jump to navigation Jump to search
 
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
 
* https://docs.docker.com/compose/compose-file/compose-file-v3/#depends_on
 
* 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>
  
  

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: