User Tools

Site Tools


apuntes:docker

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
apuntes:docker [2025/03/24 09:38] – [Detener un proyecto docker compose] Santiago Faciapuntes: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: "3.4"
 +name: cities
 +services:
 +  db:
 +    image: mariadb:11.3.2
 +    container_name: cities-db-dev
 +    environment:
 +      MYSQL_USER: 'user'
 +      MYSQL_PASSWORD: 'password'
 +      MYSQL_PORT: 3306,
 +      MYSQL_ROOT_PASSWORD: 'rootpassword'
 +    ports:
 +      - "3306:3306"
 +    volumes:
 +      - ./db:/docker-entrypoint-initdb.d
 +</code>
  
 <code bash> <code bash>
apuntes/docker.1742809100.txt.gz · Last modified: 2025/03/24 09:38 by Santiago Faci