Ver a proveniência

adjustments

master
Daniel há 2 anos
ascendente
cometimento
41d17b4b4e
3 ficheiros alterados com 9 adições e 12 eliminações
  1. +4
    -5
      .docker/docker-compose.yml
  2. +5
    -5
      README.md
  3. +0
    -2
      src/index.php

+ 4
- 5
.docker/docker-compose.yml Ver ficheiro

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


+ 5
- 5
README.md Ver ficheiro

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


+ 0
- 2
src/index.php Ver ficheiro

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

Carregando…
Cancelar
Guardar