Docker Compose Joomla

Deployment of Joomla using Docker Compose

Deployment of Joomla using Docker Compose.

Configuration summary

Ubuntu Trusty Tahr 14.04 Ubuntu Trusty Tahr 14.04
Bootstrap code
#!/bin/bash
set -x # enable debug

# install docker
curl -sSL https://get.docker.com/ | sh

# install docker compose
curl -sL https://github.com/docker/compose/releases/download/1.5.2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose

# add the configuration for joomla using Docker Compose
mkdir ~/compose-joomla
cat > ~/compose-joomla/docker-compose.yml << EOL
joomla:
  image: joomla
  links:
    - db:mysql
  ports:
    - 80:80

db:
  image: mysql
  environment:
    MYSQL_ROOT_PASSWORD: example
EOL

# execute both containers
cd ~/compose-joomla/ && /usr/local/bin/docker-compose up -d




Quick Deployment
Advanced Deployment