This shows you the differences between two versions of the page.
|
ii:labs:s2:05 [2024/04/29 19:24] radu.ciobanu [Docker Compose file example] |
ii:labs:s2:05 [2025/04/13 18:19] (current) florin.stancu |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ~~NOTOC~~ | ~~NOTOC~~ | ||
| - | ====== Lab 05 - Docker Compose ====== | + | ====== Lab 06 - Docker Compose ====== |
| ===== Objectives ===== | ===== Objectives ===== | ||
| Line 43: | Line 43: | ||
| <code yaml> | <code yaml> | ||
| # docker-compose.yml | # docker-compose.yml | ||
| - | version: "3.8" | + | #version: "3.8" |
| services: | services: | ||
| Line 75: | Line 75: | ||
| The //**version**// attribute describes what [[https://docs.docker.com/compose/compose-file/|functionalities]] will be loaded when running the Docker Compose utility. | The //**version**// attribute describes what [[https://docs.docker.com/compose/compose-file/|functionalities]] will be loaded when running the Docker Compose utility. | ||
| - | <note warning>You must specify the version in any Docker Compose file.</note> | + | <note warning>The ''version'' field has been deprecated on modern docker compose versions.</note> |
| === Services === | === Services === | ||