article:linux:docker
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédente | |||
| article:linux:docker [2024/08/10 15:39] – Gary | article:linux:docker [2024/08/10 16:07] (Version actuelle) – [Cheatsheet - Docker Compose] Gary | ||
|---|---|---|---|
| Ligne 190: | Ligne 190: | ||
| depends_on: | depends_on: | ||
| - my-service-2 | - my-service-2 | ||
| + | |||
| + | environment: | ||
| + | - APP_MODE=development | ||
| + | - LOGGING=verbose | ||
| | | ||
| # Définition du réseau | # Définition du réseau | ||
| + | hostname: myapp.local # Définition d'un hostname supplémentaire à ce container (son premier hostname étant my-service-1) | ||
| ports: | ports: | ||
| - " | - " | ||
| Ligne 211: | Ligne 216: | ||
| # Définition des volumes / Persistence de données | # Définition des volumes / Persistence de données | ||
| volumes: | volumes: | ||
| - | - type: bind # https:// | + | - type: bind |
| - | | + | |
| - | | + | |
| - | | + | |
| source: / | source: / | ||
| target: / | target: / | ||
| Ligne 269: | Ligne 274: | ||
| entrypoint | entrypoint | ||
| env_file | env_file | ||
| - | environment | ||
| expose | expose | ||
| extends | extends | ||
| Ligne 276: | Ligne 280: | ||
| group_add | group_add | ||
| healthcheck | healthcheck | ||
| - | hostname | ||
| init | init | ||
| ipc | ipc | ||
| Ligne 315: | Ligne 318: | ||
| userns_mode | userns_mode | ||
| uts | uts | ||
| - | volumes | ||
| volumes_from | volumes_from | ||
| working_dir | working_dir | ||
| </ | </ | ||
article/linux/docker.txt · Dernière modification : de Gary
