Skip to content

Latest commit

 

History

History
84 lines (54 loc) · 2.67 KB

README.md

File metadata and controls

84 lines (54 loc) · 2.67 KB

Docker TYPO3 CMS

Container with the latest TYPO3 CMS 6.2 LTS, served by nginx and PHP-FPM.
Great for learning, testing and demo's. Don't use in production!
Inspired by and borrowed from paimpozhil/magento-docker.

Quick start

Install fig and run fig up.

File: fig.yml:

mariadb:
  image: paintedfox/mariadb:latest
  environment:
    - USER=mariadb
    - PASS=p4ssw0rd
typo3cms:
  image: hbokh/docker-typo3-cms:latest
  links:
    - mariadb:db
  ports:
    - "80:80"

Use mariadb/p4ssw0rd for the database-credentials.

Restart after the stack has been stopped, use fig up --no-recreate.

Manually

The TYPO3-container needs a MySQL-container to link to.
I used paintedfox/mariadb (which equals MySQL 5.5).

First install and start the database:
docker run -td --name mariadb -e USER=mariadb -e PASS=p4ssw0rd paintedfox/mariadb

Followed by the webserver on port 80 and linked to the database:
docker run -td --name typo3-cms -p 80:80 --link mariadb:db hbokh/docker-typo3-cms

Configure TYPO3 CMS

Open a webbrowser to http://< container IP >/ and configure TYPO3.
First time startup takes a while, beacuse extensions etc. are downloaded and installed.
For the database-host use the name "db", with USER and PASS as set for the database-container (mariadb/p4ssw0rd).

You can install the TYPO3 Introduction Package for a start:

image

Build the container from source

git clone https://github.com/hbokh/docker-typo3-cms.git .

docker build --rm=true -t hbokh/docker-typo3-cms .

docker run -td -p 80:80 --link mariadb:db hbokh/docker-typo3-cms

TODO

  • Mount external data inside the container.

Issues

TYPO3 gives this error after installation:

image

This is related to TYPO3-CORE-SA-2014-001: Multiple Vulnerabilities in TYPO3 CMS

A fix is to login into the container and add a line to file /var/www/site/htdocs/typo3conf/LocalConfiguration.php, using docker exec (introduced in docker v1.3):

$ docker exec -it typo3-cms bash
root@01c255c6173d:/# vi /var/www/site/htdocs/typo3conf/LocalConfiguration.php

At the bottom of the file, within the SYS-array:

'SYS' => array(
            [ ... ],
	'trustedHostsPattern' => '.*',
),

This is somewhat of a showstopper to use the container straight away...