alexcheng1982 / docker-magento2

Docker image for Magento Open Source 2
MIT License
381 stars 258 forks source link

Where is the data...? #41

Open Zyles opened 5 years ago

Zyles commented 5 years ago

I installed, I can access phpmyadmin and the db is there etc, but where is the code base?

$ sudo ls /var/www
ls: cannot access '/var/www': No such file or directory

My docker-compose.yml:

services:
  web:
    image: alexcheng/magento2
    ports:
      - "80:80"
    links:
      - db
    env_file:
      - env
    volumes:
      - /home/magento-data:/var/www/html
  db:
    image: mysql:5.6.23
    volumes:
      - db-data:/var/lib/mysql/data
    env_file:
      - env
  phpmyadmin:
    image: phpmyadmin/phpmyadmin
    ports:
      - "8580:80"
    links:
      - db
volumes:
  db-data:
  magento-data:

$ sudo ls /home/magento-data/

empty

icychocolate98 commented 4 years ago

I have exactly the same question !

I want to use different 'datasets' for different shops . Does anyone know about that?

icychocolate98 commented 4 years ago

Okay I think I find something,

Data comes from magento marketplace where you need an authentication key, in this example we are using a key from the author.

If you need additional data (as me), try to follow this link tutorial: https://devdocs.magento.com/guides/v2.3/config-guide/cli/config-cli-subcommands-perf-data.html