Docker community image for REDAXO
There’s no official Docker image for REDAXO yet, but this one represents the »official« community image. It is developed and maintained by Friends Of REDAXO.
Tags follow this scheme:
- REDAXO version can include major, feature or hotfix releases, such as:
- PHP versions:
As a shorthand, you can provide just the REDAXO version to use it with the default PHP version (7.4) and the default variant (Apache).
A complete list of tags is available at Docker Hub.
We provide 3 image variants:
This image comes with an Apache webserver included and brings PHP with common extensions required to work with REDAXO out of the box. It is designed to be used both as a throw away container (mount your source code and start the container to start your app), as well as the base to build other images off of.
If you are unsure about what your needs are, you probably want to use this one.
This image doesn’t include a webserver and only starts a PHP FPM container. Use this image if you already have a separate webserver running, which is often NGINX.
This image is based on Alpine Linux and has a very small footprint. It doesn’t include a webserver and only starts a PHP FPM process. Use this image if you already have a separate webserver running and a small image size is very important.
utf8mb4charset is recommended for full emoji support
🙋but requires at least MySQL 5.7.7 or MariaDB 10.2! Use
utf8with older database systems :-(
Admin user to be created:
REDAXO_ADMIN_PASSWORD: must comply with the password policy (requires at least 8 chars)
(See examples for
docker run and
Note that we use
friendsofredaxo/redaxo:5 for the code examples, which represents the latest REDAXO 5 with Apache and PHP 7.4 as our current default version.
Hint: We recommend to use at least MySQL 5.7.7 or MariaDB 10.2 for full emoji support via utf8mb4 charset!
$ docker run \ --name my-redaxo-project \ -d \ -p 20080:80 \ -e REDAXO_SERVER='http://localhost:20080' \ -e REDAXO_SERVERNAME='My Website' \ -e REDAXO_ERROR_EMAILemail@example.com' \ -e REDAXO_LANG='en_gb' \ -e REDAXO_TIMEZONE='Europe/London' \ -e REDAXO_DB_HOST='db' \ -e REDAXO_DB_NAME='redaxo' \ -e REDAXO_DB_LOGIN='redaxo' \ -e REDAXO_DB_PASSWORD='s3cretpasswOrd!' \ -e REDAXO_DB_CHARSET='utf8mb4' \ -e REDAXO_ADMIN_USER='admin' \ -e REDAXO_ADMIN_PASSWORD='PunKisNOT!dead' \ friendsofredaxo/redaxo:5
Example for REDAXO container with MySQL container:
version: '3' services: redaxo: image: friendsofredaxo/redaxo:5 ports: - 20080:80 volumes: - redaxo:/var/www/html environment: REDAXO_SERVER: http://localhost:20080 REDAXO_SERVERNAME: 'My Website' REDAXO_ERROR_EMAIL: firstname.lastname@example.org REDAXO_LANG: en_gb REDAXO_TIMEZONE: Europe/London REDAXO_DB_HOST: db REDAXO_DB_NAME: redaxo REDAXO_DB_LOGIN: redaxo REDAXO_DB_PASSWORD: 's3cretpasswOrd!' REDAXO_DB_CHARSET: utf8mb4 REDAXO_ADMIN_USER: admin REDAXO_ADMIN_PASSWORD: 'PunKisNOT!dead' db: image: mysql:8 volumes: - db:/var/lib/mysql environment: MYSQL_DATABASE: redaxo MYSQL_USER: redaxo MYSQL_PASSWORD: 's3cretpasswOrd!' MYSQL_RANDOM_ROOT_PASSWORD: 'yes' volumes: redaxo: db:
If you have questions or need help, feel free to contact us in Slack Chat! You will receive an invitation here: https://redaxo.org/slack/