Parcourir la source

adjustments

master
Daniel il y a 2 ans
Parent
révision
41d17b4b4e
3 fichiers modifiés avec 9 ajouts et 12 suppressions
  1. +4
    -5
      .docker/docker-compose.yml
  2. +5
    -5
      README.md
  3. +0
    -2
      src/index.php

+ 4
- 5
.docker/docker-compose.yml Voir le fichier

@@ -4,9 +4,9 @@ name: spt-magento
services: services:
mariadb: mariadb:
image: mariadb:10.4 image: mariadb:10.4
container_name: mariadb-10.4
container_name: mariadb
ports: ports:
- "3401:3306"
- "3306:3306"
environment: environment:
# think about .env file here # think about .env file here
MYSQL_ROOT_PASSWORD: root MYSQL_ROOT_PASSWORD: root
@@ -20,7 +20,7 @@ services:
context: . context: .
dockerfile: Dockerfile dockerfile: Dockerfile
image: 'php81_apache' image: 'php81_apache'
container_name: php-8.1-apache
container_name: php-apache
environment: environment:
- "APACHE_LOG_DIR:/src" - "APACHE_LOG_DIR:/src"
ports: ports:
@@ -36,7 +36,6 @@ services:
- elasticsearch - elasticsearch
elasticsearch: elasticsearch:
image: docker.io/bitnami/elasticsearch:7 image: docker.io/bitnami/elasticsearch:7
container_name: elasticsearch7
volumes: volumes:
- ./../.elasticsearch:/bitnami/elasticsearch/data' - ./../.elasticsearch:/bitnami/elasticsearch/data'
phpmyadmin: phpmyadmin:
@@ -44,7 +43,7 @@ services:
container_name: phpmyadmin container_name: phpmyadmin
restart: always restart: always
ports: ports:
- "8102:80"
- "81:80"
environment: environment:
- PMA_ARBITRARY=1 - PMA_ARBITRARY=1
networks: networks:


+ 5
- 5
README.md Voir le fichier

@@ -13,13 +13,13 @@
- `docker-compose down` - `docker-compose down`


# Remove image # Remove image
- `docker image rm php81_apache`
- `docker image rm php_apache`


# Stop containers, remove image and recreation of container # 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 # Get into container
- `docker exec -it php-8.1-apache /bin/bash`
- `docker exec -it php-apache /bin/bash`




- `docker build -t magento-php .` - `docker build -t magento-php .`
@@ -49,7 +49,7 @@
- composer install - composer install
- "bin/magento install" Befehl: - "bin/magento install" Befehl:
php bin/magento setup:install --base-url="http://127.0.0.1" \ php bin/magento setup:install --base-url="http://127.0.0.1" \
--db-host="magento-mariadb" \
--db-host="mariadb" \
--db-name="magento" \ --db-name="magento" \
--db-user="root" \ --db-user="root" \
--db-password="root" \ --db-password="root" \
@@ -60,7 +60,7 @@
--admin-password="magento2test" \ --admin-password="magento2test" \
--use-rewrites="1" \ --use-rewrites="1" \
--backend-frontname="admin" \ --backend-frontname="admin" \
--db-prefix=mage_ \
--db-prefix="" \
--search-engine=elasticsearch7 \ --search-engine=elasticsearch7 \
--elasticsearch-host=elasticsearch \ --elasticsearch-host=elasticsearch \
--elasticsearch-port=9200 --elasticsearch-port=9200


+ 0
- 2
src/index.php Voir le fichier

@@ -1,2 +0,0 @@
<?php
echo 'hello world';

Chargement…
Annuler
Enregistrer