Dorokhov.codes

Installation of OpenCart

Versions

Version Date Description
1.1.1 10.02.2009 The first stable release was version 1.1.1, released onto Google Code on 10 February 2009.
2.0 10.2014 Version 2.0 of the software was released in October 2014, featuring an extensive update of the interface.
2.2 03.2016 Version 2.2.0.0 of the software was released in March 2016, after months of testing from OpenCart users.
3.0.3.7 02.2021 Version 3.0.3.7 of the software was released in Feb 2021, in collaboration with Webkul.
4.0 24.05.2022 Version 4.0.0.0 of the software was released on 24 May 2022.

OpenCart 1.5 + MySQL + phpMyAdmin

Dockerfile:

FROM php:5.6-apache

COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/

RUN install-php-extensions mysql gd mcrypt

RUN mv "$PHP_INI_DIR/php.ini-development" "$PHP_INI_DIR/php.ini"
version: '2.4'
services:
  app:
    container_name: opencart.app
    build: .
    ports:
      - "80:80"
    volumes:
      - .:/var/www/html
    depends_on:
      - db
  db:
    container_name: opencart.db
    image: mysql:5.7.29
    restart: always
    environment:
      MYSQL_DATABASE: opencart
      MYSQL_USER: opencart
      MYSQL_PASSWORD: opencart
      MYSQL_RANDOM_ROOT_PASSWORD: 1
    volumes:
      - ./volumes/db:/var/lib/mysql

  phpmyadmin:
    container_name: opencart.phpmyadmin
    image: phpmyadmin
    restart: always
    ports:
      - "8080:80"
    environment:
      - PMA_ARBITRARY=1
    depends_on:
      - db