|
|
|
@@ -13,13 +13,13 @@ |
|
|
|
- `docker-compose down` |
|
|
|
|
|
|
|
# Remove image |
|
|
|
- `docker image rm php81_apache` |
|
|
|
- `docker image rm php_apache` |
|
|
|
|
|
|
|
# Stop containers, remove image and recreation of container |
|
|
|
- `docker-compose down && docker image rm php81_apache && docker-compose up -d` |
|
|
|
- `docker-compose down && docker image rm php_apache && docker-compose up -d` |
|
|
|
|
|
|
|
# Get into container |
|
|
|
- `docker exec -it php-8.1-apache /bin/bash` |
|
|
|
- `docker exec -it php-apache /bin/bash` |
|
|
|
|
|
|
|
|
|
|
|
- `docker build -t magento-php .` |
|
|
|
@@ -44,35 +44,5 @@ |
|
|
|
4. Restart the containers using the following command: `docker-compose up -d` |
|
|
|
|
|
|
|
|
|
|
|
# INSTALL MAGENTO via composer |
|
|
|
- docker Container starten und in den Container wechseln |
|
|
|
- composer install |
|
|
|
- "bin/magento install" Befehl: |
|
|
|
php bin/magento setup:install --base-url="http://127.0.0.1" \ |
|
|
|
--db-host="magento-mariadb" \ |
|
|
|
--db-name="magento" \ |
|
|
|
--db-user="root" \ |
|
|
|
--db-password="root" \ |
|
|
|
--admin-firstname="Admin" \ |
|
|
|
--admin-lastname="Admin" \ |
|
|
|
--admin-email="re@spawntree.de" \ |
|
|
|
--admin-user="admin" \ |
|
|
|
--admin-password="magento2test" \ |
|
|
|
--use-rewrites="1" \ |
|
|
|
--backend-frontname="admin" \ |
|
|
|
--db-prefix=mage_ \ |
|
|
|
--search-engine=elasticsearch7 \ |
|
|
|
--elasticsearch-host=elasticsearch \ |
|
|
|
--elasticsearch-port=9200 |
|
|
|
|
|
|
|
# create admin account |
|
|
|
bin/magento admin:user:create --admin-user=admin --admin-password=admin2spt --admin-email=re@spawntree.de --admin-firstname=Admin --admin-lastname=Administrator |
|
|
|
|
|
|
|
# mkdir for volumes |
|
|
|
mkdir -m 775 elasticsearch_data magento_data mariadb_data |
|
|
|
mkdir .elasticsearch .mariadb |
|
|
|
|
|
|
|
# standard permission magento - do we use it? |
|
|
|
find . -type d -exec chmod 0711 {} + |
|
|
|
find . -type f -exec chmod 0644 {} + |
|
|
|
find . -type f -name “*.php” -exec chmod 600 {} + |
|
|
|
# Enable ssl document |
|
|
|
https://time2hack.com/dockerize-php-app-with-apache-on-https/ |