Detailed docs are available in docs folder
For COMPOSER_AUTH
use your personal Magento 2 key from marketplace. More info here.
export COMPOSER_AUTH='{"http-basic":{"repo.magento.com": {"username": "REPLACE_THIS", "password": "REPLACE_THIS"}}}'
- Requirements are met, see above
- Clone repository and cd to it
composer.json
must be present in/src
- Run
docker-compose -f docker-compose.yml -f docker-compose.local.yml up -d
- Check with
docker-compose ps
that all containersRunning
- Open http://localhost:3000 to check if Magento is started
If something does not work, like you see 404 when opening the site.
- Run docker without the
-d
->docker-compose -f docker-compose.yml -f docker-compose.local.yml up
- Check logs of running containers by executing:
docker-compose logs -f
If you see error like this
[Composer\Downloader\TransportException]
app_1 | The 'https://repo.magento.com/packages.json' URL required authentication.
app_1 | You must be using the interactive console to authenticate
It means your COMPOSER_AUTH
has wrong credentials.
Please ensure that the keys are correct and that you ran the export
command in the same terminal window as you
run the docker-compose
Make sure you can run docker without sudo
. See Manage Docker as a non-root user
If you see error like this
$ docker-compose exec -u user app bash -l
unable to find user user: no matching entries in passwd file
there is an issue with your app
container.
- Make sure you have latest version of the docker
- (Optional, if previous versions exists on your machine) Run
docker-compose -f docker-compose.yml -f docker-compose.local.yml -f docker-compose.ssl.yml -f docker-compose.frontend.yml build
- Start containers with
--force-recreate
like thisdocker-compose -f docker-compose.yml -f docker-compose.local.yml -f docker-compose.ssl.yml -f docker-compose.frontend.yml up --force-recreate