Skip to content

Commit

Permalink
Merge pull request #6 from gaiterjones/revert-5-master
Browse files Browse the repository at this point in the history
Revert "Update docker-compose to docker compose"
  • Loading branch information
gaiterjones authored Jun 8, 2022
2 parents 13148f4 + bf489d2 commit e30bfcf
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ Docker containers for Magento 2.4.x development including :

1. git clone https://github.com/gaiterjones/docker-magento2
2. EDIT .env - **add your Magento authentication keys**
3. `docker compose build`
4. `docker compose up -d`
3. `docker-compose build`
4. `docker-compose up -d`
5. Install sample data
`docker compose exec -u magento php-apache install-sampledata`
`docker-compose exec -u magento php-apache install-sampledata`

6. Install Magento
`docker compose exec -u magento php-apache install-magento`
`docker-compose exec -u magento php-apache install-magento`

7. Disable 2FA for testing
`docker compose exec -u magento php-apache bin/magento module:disable Magento_TwoFactorAuth`
`docker-compose exec -u magento php-apache bin/magento module:disable Magento_TwoFactorAuth`

## Test

Expand All @@ -38,9 +38,9 @@ http://magento2.dev.com
- CLI


`docker compose exec -u magento php-apache bash`
`docker-compose exec -u magento php-apache bash`

to fix layout issues with demo data : `docker compose exec -u magento php-apache cp /var/www/dev/magento2/vendor/magento/module-cms-sample-data/fixtures/styles.css /var/www/dev/magento2/pub/media/`
to fix layout issues with demo data : `docker-compose exec -u magento php-apache cp /var/www/dev/magento2/vendor/magento/module-cms-sample-data/fixtures/styles.css /var/www/dev/magento2/pub/media/`
### More

https://blog.gaiterjones.com/docker-magento-2-development-deployment-php7-apache2-4-redis-varnish-scaleable/ for further deployment instructions.
Expand Down

0 comments on commit e30bfcf

Please sign in to comment.