apuntes:docker
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
apuntes:docker [2025/03/23 13:16] – [Varios] Santiago Faci | apuntes:docker [2025/03/24 09:38] (current) – [Construir e iniciar un proyecto con docker compose] Santiago Faci | ||
---|---|---|---|
Line 302: | Line 302: | ||
===== Docker Compose ===== | ===== Docker Compose ===== | ||
- | ==== Lanzar | + | ==== Construir e iniciar |
+ | |||
+ | <code yaml> | ||
+ | version: " | ||
+ | name: cities | ||
+ | services: | ||
+ | db: | ||
+ | image: mariadb: | ||
+ | container_name: | ||
+ | environment: | ||
+ | MYSQL_USER: ' | ||
+ | MYSQL_PASSWORD: | ||
+ | MYSQL_PORT: 3306, | ||
+ | MYSQL_ROOT_PASSWORD: | ||
+ | ports: | ||
+ | - " | ||
+ | volumes: | ||
+ | - ./ | ||
+ | </ | ||
+ | |||
+ | <code bash> | ||
+ | santi@zenbook: | ||
+ | </ | ||
+ | |||
+ | <code bash> | ||
+ | santi@zenbook: | ||
+ | </ | ||
==== Detener un proyecto docker compose ==== | ==== Detener un proyecto docker compose ==== | ||
+ | |||
+ | <code bash> | ||
+ | santi@zenbook: | ||
+ | </ | ||
+ | |||
+ | <code bash> | ||
+ | santi@zenbook: | ||
+ | </ | ||
+ | |||
+ | ==== Iniciar un proyecto docker compose ==== | ||
+ | |||
+ | <code bash> | ||
+ | santi@zenbook: | ||
+ | </ | ||
+ | |||
+ | <code bash> | ||
+ | santi@zenbook: | ||
+ | </ | ||
+ | |||
+ | ==== Eliminar un proyecto docker compose ==== | ||
+ | |||
+ | <code bash> | ||
+ | santi@zenbook: | ||
+ | </ | ||
+ | |||
+ | <code bash> | ||
+ | santi@zenbook: | ||
+ | </ | ||
+ | |||
==== Configurar una red para un proyecto docker compose ==== | ==== Configurar una red para un proyecto docker compose ==== |
apuntes/docker.1742735798.txt.gz · Last modified: 2025/03/23 13:16 by Santiago Faci