Coder Social home page Coder Social logo

elgg-docker's Introduction

Supported tags and respective Dockerfile links

What is Elgg ?

Elgg is an award-winning social networking engine, delivering the building blocks that enable businesses, schools, universities and associations to create their own fully-featured social networks and applications.

For more information and related for Elgg, please visit www.elgg.org. logo

How to use this image

Before you start you need to have installed:

1.. Get the Elgg:

$ 
& mkdir elgg && cd elgg
$ composer.phar global require "fxp/composer-asset-plugin:~1.1.1"
$ composer create-project elgg/starter-project:dev-master .
$ composer.phar install

See http://learn.elgg.org/en/stable/intro/install.html#upload-elgg

2.. Create file docker-compose.yml at your project directory, for running multi-container applications with docker-compose:

web:
  image: keviocastro/elgg-docker:2.0
  ports:
    - "8000:80" #If you change the port, you must also change the environment variable ELGG_WWW_ROOT
  links:
    - mysql
  volumes:
    - .:/var/www/html/
  environment:
    MYSQL_USER: root
    MYSQL_PASS: root-pass
    ELGG_USERNAME: admin
    ELGG_PASSWORD: admin-pass
    ELGG_WWW_ROOT: http://localhost:8000
mysql:
  image: mysql:5.6  
  environment:
    MYSQL_DATABASE: elgg
    MYSQL_ROOT_PASSWORD: root-pass
$ docker-compose up -d

3.. Install the Elgg:

$ docker exec elgg_web_1 /elgg-docker/elgg-install.sh

Visit your Elgg site: http://localhost:8000/

Environment Variables

When you start the elgg-docker image, you can adjust the configuration of the elgg instance by passing one or more environment variables. The default values are in Dockerfile file: Dockerfile

You can modify the parameters by passing one or more environment variables in file docker-compose.yml

Example:

web:
  image: keviocastro/elgg-docker:2.0
  environment:
    MYSQL_USER: elgg
    MYSQL_PASS: elgg-pass
    ELGG_DISPLAY_NAME: my-name
    ELGG_DB_PREFIX: my-elgg
    TIMEZONE: America/Sao_Paulo
  • TIMEZONE The timezone of the server and php
  • MYSQL_USER The DB username to create
  • MYSQL_PASS The DB password to set on the created user
  • ELGG_DB_HOST The DB host Elgg will use
  • ELGG_DB_USER The DB user Elgg will use
  • ELGG_DB_PASS The DB password Elgg will use
  • ELGG_DB_PREFIX Elgg's DB prefix
  • ELGG_DB_NAME The name of the DB Elgg will use
  • ELGG_SITE_NAME Elgg's site name
  • ELGG_SITE_EMAIL Elgg site email address
  • ELGG_WWW_ROOT Elgg's www_root (Don't change this unless you modify run.sh and the installation)
  • ELGG_DATA_ROOT The data_root for Elgg (/media)
  • ELGG_DISPLAY_NAME The display name for the admin user
  • ELGG_EMAIL The email address for the admin user (must be a well-formed, though not necessarily value, address)
  • ELGG_USERNAME The username of the admin user
  • ELGG_PASSWORD The password for the admin user
  • ELGG_PATH The location Elgg is installed (Don't change this unless you modify run.sh and the installation)
  • ELGG_SITE_ACCESS The default site access

elgg-docker's People

Contributors

keviocastro avatar logosedu avatar

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.