Skip to content

Instantly share code, notes, and snippets.

@DominicWatts
Last active October 22, 2025 13:22
Show Gist options
  • Select an option

  • Save DominicWatts/c9cff2ac872c5a0794a3dc4f21b873f0 to your computer and use it in GitHub Desktop.

Select an option

Save DominicWatts/c9cff2ac872c5a0794a3dc4f21b873f0 to your computer and use it in GitHub Desktop.
Docker : shust docker install #docker

setup

mkdir ./Shust249-p9
cd ./Shust249-p9
curl -s https://raw.githubusercontent.com/markshust/docker-magento/master/lib/template | bash
dos2unix bin/*
mv compose.dev-linux.yaml compose.dev.yaml

composer.yaml manual edit

[...]
services:
  app:
    image: markoshust/magento-nginx:1.24-0
    ports:
      - "80:8000"
      - "443:8443"
    volumes: &appvolumes
      - ~/.composer:/var/www/.composer:cached
      - ~/.ssh/id_rsa:/var/www/.ssh/id_rsa:cached
      # compose.dev-linux.yaml added lines start
      - ~/.ssh/known_hosts:/var/www/.ssh/known_hosts:cached
      - ./src/nginx.conf.sample:/var/www/html/nginx.conf:cached
    # compose.dev-linux.yaml added lines end
      - ./src:/var/www/html:cached
      - appdata:/var/www/html
      - sockdata:/sock
      - ssldata:/etc/nginx/certs
    #extra_hosts: &appextrahosts
      ## Selenium support, replace "magento.test" with URL of your site
      #- "magento.test:172.17.0.1"
      ## Linux, uncomment for Xdebug capabilities:
      #- "host.docker.internal:host-gateway"
[...]

setup continue

bin/download community 2.4.9-p9
bin/setup magento2.docker
open https://magento.docker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment