Git Product home page Git Product logo

docker-cocorico's Introduction

Cocorico Docker & Docker Compose

This Repository provide specific Docker and Docker Compose material in order to run a Cocorico instance.

Setup

First, clone the latest version of Cocorico

$ cd /path/to/cocorico
$ git clone https://github.com/Cocolabs-SAS/cocorico.git

Then start containers (databses and web) with docker-compose :

$ docker-compose up

You should now install composer dependencies :

$ docker exec -i -t cocorico-web composer install

Follow instructions given in https://github.com/Cocolabs-SAS/cocorico#application-install--configuration

You should put in your app/config/parameters.ymlthe following settings for your databases :

# app/config/parameters.yml
parameters:
    database_host: 'cocorico-db-mysql'
    database_port: 3306
    database_name: cocorico
    database_user: root
    database_password: cocorico #or change it in docker-compose.yml
    mongodb_server: 'mongodb://cocorico-db-mongo:27017'
    mongodb_database_name: cocorico_dev

Then you should setup Cocorico as described in https://github.com/Cocolabs-SAS/cocorico#installation

$ docker exec -i -t cocorico-web  chmod 744 bin/init-db
$ docker exec -i -t cocorico-web  ./bin/init-db php --env=dev
$ docker exec -i -t cocorico-web  chmod 744 bin/init-mongodb
$ docker exec -i -t cocorico-web  ./bin/init-mongodb php --env=dev
$ docker exec -i -t cocorico-web  php app/console assets:install --symlink web --env=dev
$ docker exec -i -t cocorico-web  php app/console assetic:dump --env=dev

Your setup is now complete! If you want to customize things, feel free to have a look at the Dockerfile and docker-compose.yml file

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.