Includes: Magento 2.4.X with Sample Data, PHP 7.4, 8.1, 8.2, 8.3 Apache2
10K+
version: '3'
services: magento: image: folio3ecommerce/magento-php-apache:2.4.7 restart: on-failure volumes: # Mount extension source data to container - ./src/${COMPOSE_PROJECT_NAME}/app/code:/var/www/html/app/code:cached ports: - "${APP_PORT}:80" env_file: env/phpfpm.env links: - db - redis - elasticsearch depends_on: - db networks: - customNetwork2
db: image: mariadb:10.6 restart: on-failure command: --max_allowed_packet=256M ports: - "${DB_PORT}:3306" env_file: env/db.env volumes: - dbdata:/var/lib/mysql networks: - customNetwork2
redis: image: redis:7.2-alpine restart: on-failure ports: - "${REDIS_PORT}:6379" networks: - customNetwork2
elasticsearch: image: elasticsearch:7.17.10 restart: on-failure ports: - "${ES_PORT}:9200" - "${ES_SSL_PORT}:9300" volumes: - elasticsearchdata:/var/lib/elasticsearch environment: - "discovery.type=single-node" ## Set custom heap size to avoid memory errors - "ES_JAVA_OPTS=-Xms1g -Xmx1g" ## Avoid test failures due to small disks ## More info at https://github.com/markshust/docker-magento/issues/488 - "cluster.routing.allocation.disk.threshold_enabled=false" - "index.blocks.read_only_allow_delete" networks: - customNetwork2
volumes: appdata: dbdata: sockdata: ssldata: redisdata: elasticsearchdata:
networks: customNetwork2:
Use following command to import database:
"mysql -h127.0.0.1 -uroot -pmagento -P magento < /path/to/file/magento247.sql"
Note: DB file is available at /var/www/html/magento247.sql inside the magento container
Content type
Image
Digest
sha256:d218ddb00…
Size
2.5 GB
Last updated
over 2 years ago
docker pull folio3ecommerce/magento-php-apache