Sign inSign up

nicolaspotier/docker-cocorico

By nicolaspotier

•Updated over 9 years ago

Specific Docker and Docker Compose material in order to run a Cocorico instance.

Image
2

713

nicolaspotier/docker-cocorico repository overview

⁠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 (databases 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

Tag summary

Content type

Image

Digest

Size

186.1 MB

Last updated

over 9 years ago

docker pull nicolaspotier/docker-cocorico