-
Notifications
You must be signed in to change notification settings - Fork 5
TYPO3 as docker
Philipp Zumstein edited this page Aug 16, 2018
·
6 revisions
- Open the docker console (resp. a shell) and go to your repository directory
- The first time you need to run
./tools/start-docker.sh --new
and afterwards simply./tools/start-docker.sh
- This will create the two docker images (for the database and typo3 itself) and run a container of them. Check that both are running with
docker ps
- Open
http://localhost
resp.docker-machine ip
on windows in your browser and finish the configuration. The database is already connected between the two docker containers and namedtypo3-db
. - Open a bash in the running docker container with
docker exec -ti <docker-container-id> bash
- Change the owner of the ext subdirectory, i.e.
chown www-data:www-data typo3conf/ext
- Install the vhs extension in the typo3 backend.
- Activate the publication plugin in the typo3 backend. The current directory is mapped into the extension directory of typo3 and therefore the extension will automatically been found.
You have to choose typo3-db
as host and the user name and password previously configured in the database, i.e.
For testing purposes it might be the easiest create an empty page to start from:
- After a while it is possible that you see the following error
Error: Could not download file
. Then you can stop the docker containers and restart the docker-machine with
docker-machine restart
and start the docker containers again.
- Some errors can occur if docker has not enough space left. Then delete any old containers or images.
- The plugin needs also the vhs plugin and you may need to install that plugin first.
See https://www.martin-helmich.de/de/blog/typo3-cms-docker.html
$ docker run -d --name typo3-db \
-e MYSQL_ROOT_PASSWORD=yoursupersecretpassword \
-e MYSQL_USER=typo3 \
-e MYSQL_PASSWORD=yourothersupersecretpassword \
-e MYSQL_DATABASE=typo3 \
mariadb:latest \
--character-set-server=utf8 \
--collation-server=utf8_unicode_ci
$ docker run -d --name typo3-web \
--link typo3-db:db \
-p 80:80 \
martinhelmich/typo3:7