apuntes:docker
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
apuntes:docker [2025/03/24 09:38] – [Detener un proyecto docker compose] Santiago Faci | apuntes:docker [2025/03/24 09:38] (current) – [Construir e iniciar un proyecto con docker compose] Santiago Faci | ||
---|---|---|---|
Line 303: | Line 303: | ||
==== Construir e iniciar un proyecto con docker compose ==== | ==== Construir e iniciar un proyecto con docker compose ==== | ||
+ | |||
+ | <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> | <code bash> |
apuntes/docker.1742809100.txt.gz · Last modified: 2025/03/24 09:38 by Santiago Faci