Giter Site home page Giter Site logo

docker-orocommerce's Introduction

OroCommerce CE Docker image.

The simple Docker image to start use OroCommerce.

Features

  • A small Docker image (250-300 Mb) that based on php:7.2-fpm-alpine.
  • Allows to enable/disable cron, websocket and consumers count.
  • Easy to use - single container for web, cron, websocket and consumers.
  • Assets are already pre-installed in the docker image.

Quick Start

Examples

The docker image is based on php:7.2-fpm-alpine with installed supervisor and nginx. No additional containers for consumers, websocket etc. You can select count of consumers, disable/enable websocket. Platform update/install and init a cache will occur when creating the container. To update OroCommerce application you need only pull a new version and run container again.

Pull from docker hub

docker pull okvpn/orocommerce:3.1

List of all tags you can found here.

Please note that the first installation may take a long time 10-20 min. To check the application logs and current status, please use the command docker logs [container_name]

docker logs orocommerce --follow

Additional Information

Docker composer example.

version: '2'

services:
    postgres:
        hostname: postgres
        container_name: postgres_orocommerce
        image: postgres:9.6
        volumes:
            - .docker/db:/var/lib/postgresql/data
        environment:
            POSTGRES_DB: orocommerce
            POSTGRES_PASSWORD: 123456
        expose:
            - "5432"

    orocommerce:
        image: okvpn/orocommerce:4.1
        container_name: orocommerce
        hostname: orocommerce
        ports:
            - 127.0.0.1:8085:80
        volumes:
            - .docker/attachment:/var/www/orocommerce/var/attachment
            - .docker/media:/var/www/orocommerce/public/media
            - .docker/uploads:/var/www/orocommerce/public/uploads
        environment:
            # installation options
            APPLICATION_URL: https://orocommerce.companyname.org
            ADMIN_USER: admin
            ADMIN_PASSWORD: admin
            ADMIN_EMAIL: [email protected]
            ADMIN_FIRST_NAME: Alieś
            ADMIN_LAST_NAME: Zagorski
            ORO_DATABASE_DRIVER: pdo_pgsql
            ORO_DATABASE_HOST: postgres
            ORO_DATABASE_PORT: 5432
            ORO_DATABASE_USER: postgres
            ORO_DATABASE_NAME: orocommerce
            ORO_DATABASE_PASSWORD: 123456

Enable websocket

To enable websocket, please use environment variable ORO_WEBSOCKET=true. By default websocket is disabled.

Disable crontab

Cron is enabled by default. Use ORO_CRON=false to disable cron.

Disable background jobs (consumers)

Background jobs is enabled by default. You can use env ORO_CONSUMER_COUNT=0.

Environment variables

Installation options

To install application need to create admin user, so you will be able to login to the backoffice. To create an admin account you need to use environment variables to pass in an initial username and password

  • ADMIN_USER - Admin username

  • ADMIN_PASSWORD - Admin password

  • ADMIN_EMAIL - Admin email

  • ADMIN_FIRST_NAME - First name

  • ADMIN_LAST_NAME - Last name

  • APPLICATION_URL - Application url

  • ORGANIZATION_NAME - Main organization name

parameters.yml options

  • ORO_DATABASE_DRIVER - (pdo_pgsql, pdo_mysql)

  • ORO_DATABASE_HOST - Database host

  • ORO_DATABASE_PORT - Database port

  • ORO_DATABASE_USER - Database user

  • ORO_DATABASE_NAME - Database name

  • ORO_DATABASE_PASSWORD - Database password

Other env options, see here

Additional configuration

  • ORO_CRON - Enable cron ORO_CRON=false

  • ORO_WEBSOCKET - Enable websocket ORO_WEBSOCKET=true

  • ORO_CONSUMER_COUNT - Count of consumers. ORO_CONSUMER_COUNT=2

  • SKIP_ASSETS - Skip install and build assets, default true. Assets are already pre-installed in the docker image.

Build image from source

docker build 3.1/ --tag='okvpn/orocommerce:3.1' --build-arg ORO_PLATFORM=3.1.15

LICENSE

MIT

docker-orocommerce's People

Contributors

fabiensalles avatar vtsykun avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

docker-orocommerce's Issues

Can't install correctly Oro

Hi,

I created a PR #4 with fixes but I have a last one that I can't solve :
When I try to access to the front controller with my browser wit the url locahost:8085 I'm redirected to the domain https://orocommerce.companyname.org/ that isn't accessible.
I added this domain in my /etc/hosts file but the problem is the same.

The application works fine in CLI with my fixes. I have logs with the redirection in nginx due to the index.php file but I don't understand what I have to do to use this domain.

Could you help me ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.