Skip to content
Docker environment configurations for OroPlatform-based projects
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.composer
blackfire-agent
build
ci BAP-17930: Broken inline editor template (#20973) Dec 7, 2018
composer
consumer
cron
data-cache BAP-17040: Update application structure to Symfony 4 (#18137) May 15, 2018
data
dns-gen IS-890: Automated application installation on local machine (#7393) May 12, 2017
doc BAP-18131: Updated repository links at the documentation to use publi… Dec 26, 2018
elasticsearch IS-890: Automated application installation on local machine (#7393) May 12, 2017
env
mail Expose Mailhog to external connection, in order to make possible acce… Aug 13, 2018
mysql
nginx
pgsql Db dumps 31 master (#22439) Feb 12, 2019
phantomjs
php XDEBUG_ENABLED vars added to docker-compose cinfigs for php images (#… May 15, 2018
python IS-890: Automated application installation on local machine (#7393) May 12, 2017
rabbitmq
websocket BAP-17568: Errors in environment containers after upgrade to the new … Aug 30, 2018
.gitignore
README.md BAP-18131: Updated repository links at the documentation to use publi… Dec 26, 2018
Vagrantfile
behat.yml
data.yml
docker-compose.yml IS-890: Automated application installation on local machine (#7393) May 12, 2017
elasticsearch.yml IS-890: Prepare Docker env to be executed on Jenkins (#11061) Jun 22, 2017
functional.yml IS-890: Prepare Docker env to be executed on Jenkins (#11061) Jun 22, 2017
javascript.yml IS-890: Prepare Docker env to be executed on Jenkins (#11061) Jun 22, 2017
php71_nginx_mysql_full_ce.yml
php71_nginx_mysql_full_ee.yml IS-890: Prepare Docker env to be executed on Jenkins (#11061) Jun 22, 2017
php71_nginx_pgsql_full_ee.yml IS-890: Prepare Docker env to be executed on Jenkins (#11061) Jun 22, 2017
unit.yml

README.md

Introduction

A Dockerized development environment for applications based on OroPlatform.

Installation

Additional Information

Quick Start

  1. Clone repository to your local machine

    git clone git@github.com:oroinc/environment.git ~/orodev
    
  2. Configure GitHub token for current project. To retrieve new token follow by this link.

    docker run -v $(realpath ~/orodev)/environment/.composer/auth/:/usr/local/composer/auth oroinc/composer:1.4 config -g github-oauth.github.com <YOUR_GITHUB_AUTH_TOKEN>
    
  3. Define environment variable with absolute path to the application root directory

    export ORO_APP=$(realpath ~/orodev)/application/commerce-crm-ee
    
  4. Define environment variable with application env mode (prod or dev, prod by default)

    export SYMFONY_ENV=prod
    

    This variable is required

  5. Run docker compose

    docker-compose -p oro -f environment/php71_nginx_pgsql_full_ee.yml up
    

    This variable is optional (will be in prod mode if not defined)

  6. Wait until composer vendors installation. Proceed once you see next message

    oro_composer_1 exited with code 0

  7. Then open in your web-browser http://webserver.oro.docker and continue via web installation wizard.

Environment Credentials For Install

Database connection

Driver: PostgreSQL
Host: database
Port: empty
Name: oro_db
User: oro_db_user
Password: oro_db_pass
Drop database: None

Mail Settings:

Transport: SMTP
Host: mail
Port: 1025
Encryption: None
user: empty
password: empty

Websocket connection:

Service bind address: 0.0.0.0
Service bind port: 8080
WS Backend host: *
WS Backend port: 8080
WS Frontend host: *
WS Frontend port: 8080

Mail and RabbitMQ Web-GUIs

MailHog

All emails what be sent from application will be catched by MailHog.
Web-GUI available by url: http://mail.{project_name}.docker:1080 (for example: http://mail.oro.docker:1080)

RabbitMq (available only if you use EE setup)

UI: http://mq.{project_name}.docker:15672 (for example: http://mq.oro.docker:15672)
User: oro_mq_user
Password: oro_mq_pass

Shutdown environment

If you want to stop environment for future just press ctrl + c, in detached mode run:

docker-compose -p oro -f environment/php71_nginx_pgsql_full_ee.yml stop

Restore after shutdown

docker-compose -p oro -f environment/php71_nginx_pgsql_full_ee.yml up

Reinstall application

  1. Destroy docker containers with volumes
    docker-compose -p oro -f environment/php71_nginx_pgsql_full_ee.yml down -v
    

    Warning it is destroy all persistent data (database, search, mq, etc..)

  2. Delete application cache
    rm -rf "${ORO_APP}/var/cache/*"
    
  3. Delete application config
    rm -rf "${ORO_APP}/config/parameters.yml"
    
  4. Run new containers
    docker-compose -p oro -f environment/php71_nginx_pgsql_full_ee.yml up
    

Troubleshooting

Run commands one by one to clean up your environment

docker ps -aq | xargs docker rm -fv
docker volume ls -q | xargs docker volume rm -f
docker network ls -q | xargs docker network rm
docker images -q | xargs docker rmi -f
You can’t perform that action at this time.