PHPackages                             visay/dockerjoomla - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [DevOps &amp; Deployment](/categories/devops)
4. /
5. visay/dockerjoomla

ActiveLibrary[DevOps &amp; Deployment](/categories/devops)

visay/dockerjoomla
==================

Docker Compose structure to quickly startup Joomla CMS projects

1.0.0(9y ago)119MIT

Since Jun 25Compare

[ Source](https://github.com/visay/DockerJoomla)[ Packagist](https://packagist.org/packages/visay/dockerjoomla)[ RSS](/packages/visay-dockerjoomla/feed)WikiDiscussions Synced today

READMEChangelog (2)DependenciesVersions (3)Used By (0)

DockerJoomla helps you developing Joomla CMS projects
=====================================================

[](#dockerjoomla-helps-you-developing-joomla-cms-projects)

DockerJoomla creates the necessary Docker containers (webserver, database, php, mail, redis, elasticsearch, couchdb) to run your Joomla CMS project. The package provides a wrapper script in `vendor/bin/dockerjoomla`which simplifies the handling of docker and does all the configuration necessary.

We created this package to make development on Joomla CMS projects easier and to create a simple reusable package which can easily be maintained and serves well for the standard project.

Development will continue further as the package is already reused in several projects. Contributions and feedback are very welcome.

Install docker
--------------

[](#install-docker)

```
https://docs.docker.com/installation/ (tested with docker v1.11)

```

Install docker-compose
----------------------

[](#install-docker-compose)

We use docker-compose to do all the automatic configuration:

```
http://docs.docker.com/compose/install/ (tested with docker-compose v1.6)

```

The repository contains a Dockerfile which will automatically be built in the [docker hub](https://registry.hub.docker.com/u/visay/dockerjoomla/) after each change and used by docker-compose to build the necessary containers.

Install DockerJoomla into your distribution
-------------------------------------------

[](#install-dockerjoomla-into-your-distribution)

Add `visay/dockerjoomla` as dev dependency in your composer, using the latest stable release is highly recommended.

*Example*:

```
composer require --dev visay/dockerjoomla dev-master

```

*Note*:

DockerJoomla uses port 80 for web access so you need to make sure that your host machine does not have any software using that port. Usually this happens if you have apache or nginx installed in your host machine, so you can stop it with:

```
sudo service apache2 stop
sudo service nginx stop

```

Run DockerJoomla
----------------

[](#run-dockerjoomla)

```
vendor/bin/dockerjoomla up -d

```

The command will echo the url with which you can access your project. Add the hostname then to your `/etc/hosts`and set the ip to your docker host (default for linux is 0.0.0.0). You can also use any subdomain with \*.hostname and it will point to the same server. What you need to do is to add exact subdomain name to your `/etc/hosts`. The parameter `-d` will keep it running in the background until you run:

```
vendor/bin/dockerjoomla stop

```

Setup Database Connection
-------------------------

[](#setup-database-connection)

```
