spip/fpm
Containers for SPIP
git clone https://github.com/JamesRezo/spip-docker.git
cd spip-docker
make start
Open http://localhost:8000/ecrire in a web browser.
admin
spip3.2.8
SPIP is installed in ./apps/spip
.
ecrire/inc/filtres_images_lib_mini.php:504
Xdebug
sqlite3 enabled
config/connect.php
:
<?php
if (!defined("_ECRIRE_INC_VERSION")) return;
$GLOBALS['spip_connect_version'] = 0.8;
spip_connect_db('localhost','','','','spip','sqlite3', 'spip','','');
SPIP-Cli
TODO.
Default SQL Server is MariaDB 10.3 (default sql server in Debian Buster)
Parameters:
sql
default to 3306 portroot
spip
Alternatively, for MySQL 5.7,
create a docker-compose.override.yml
file next to the docker-compose.yml
file with the content below
sql:
image: mysq:5.7
command: --default-authentication-plugin=mysql_native_password
volumes:
- ./data/spip:/var/lib/mysql
- ./docker/sql/mysql/5.7:/docker-entrypoint-initdb.d
mod_php
ecrire/inc/filtres_images_lib_mini.php:504
PHP-FPM with Apache httpd Server
TODO.
PHP-FPM with Nginx
TODO.
TODO.
SPIP Version | PHP 5.4 | PHP 5.5 | PHP 5.6 | PHP 7.0 | PHP 7.1 | PHP 7.2 | PHP 7.3 | PHP 7.4 | PHP 8.0 |
---|---|---|---|---|---|---|---|---|---|
3.2 (3.2.8) | 5.4-cli | 5.5-cli | 5.6-cli | 7.0-cli | 7.1-cli | 7.2-cli | N/A | N/A | N/A |
3.3 (3.3.x-dev) | N/A | N/A | 5.6-cli | 7.0-cli | 7.1-cli | 7.2-cli | 7.3-cli | latest | 8.0-cli |
3.4 (3.4.x-dev) | N/A | N/A | N/A | N/A | N/A | N/A | 7.3-cli | latest | 8.0-cli |
SPIP Version | PHP 5.4 | PHP 5.5 | PHP 5.6 | PHP 7.0 | PHP 7.1 | PHP 7.2 | PHP 7.3 | PHP 7.4 | PHP 8.0 |
---|---|---|---|---|---|---|---|---|---|
3.2 (3.2.8) | 5.4-apache | 5.5-apache | 5.6-apache | 7.0-apache | 7.1-apache | 7.2-apache | N/A | N/A | N/A |
3.3 (3.3.x-dev) | N/A | N/A | 5.6-apache | 7.0-apache | 7.1-apache | 7.2-apache | 7.3-apache | latest | 8.0-apache |
3.4 (3.4.x-dev) | N/A | N/A | N/A | N/A | N/A | N/A | 7.3-apache | latest | 8.0-apache |
SPIP Version | PHP 5.4 | PHP 5.5 | PHP 5.6 | PHP 7.0 | PHP 7.1 | PHP 7.2 | PHP 7.3 | PHP 7.4 | PHP 8.0 |
---|---|---|---|---|---|---|---|---|---|
3.2 (3.2.8) | 5.4-fpm | 5.5-fpm | 5.6-fpm | 7.0-fpm | 7.1-fpm | 7.2-fpm | N/A | N/A | N/A |
3.3 (3.3.x-dev) | N/A | N/A | 5.6-fpm | 7.0-fpm | 7.1-fpm | 7.2-fpm | 7.3-fpm | latest | 8.0-fpm |
3.4 (3.4.x-dev) | N/A | N/A | N/A | N/A | N/A | N/A | 7.3-fpm | latest | 8.0-fpm |
Defaults to 7.2-cli+7.2-fpm images and SPIP3.2.8 installation
To test with alternative PHP Versions :
Create a docker-compose.override.yml
file next to the docker-compose.yml
file with the content below and change the PHP version as needed :
#Run Stable SPIP under PHP 8.0 version
version: "3.8"
services:
tools:
image: spip/tools:8.0-cli
dev.spip.local:
image: spip/mod_php:8.0
volumes:
- ./apps/spip:/var/www/html
or
#Run Stable SPIP under its minimum PHP version and apache2+mod_php
version: "3.8"
services:
tools:
build:
context: ./docker/php
dockerfile: cli/5.4/Dockerfile
image: spip/tools:5.4-cli
dev.spip.local:
build:
context: ./docker/php
dockerfile: apache/5.4/Dockerfile
image: spip/mod_php:5.4
volumes:
- ./apps/spip:/var/www/html
or
#Run Dev SPIP under stable PHP version
version: "3.8"
services:
tools:
build:
context: ./docker/php
dockerfile: cli/7.3/Dockerfile
image: spip/tools:7.3-cli
php-server:
image: spip/tools:7.3-cli
networks:
- dev.spip.local
ports:
- "5919:5919"
hostname: php-server
container_name: php-server
volumes:
- ./apps/spip-dev:/build
entrypoint: ["php", "-S", "php-server:5919", "-t", "."]
docker pull spip/fpm