Skip to content

ashledombos/docker-spip

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker SPIP (stack version)

This project is a fork of IPEOS official Docker Spip images set.

There are several differences with original Docker image from IPEOS.

  • There are two different images, one for Apache (Apache is better suited for SPIP than NGINX and since we use PHP-FPM, and not mod_php, performances are more or less the same) and one for PHP-FPM. This is adapted to be used with Docker Compose or Docker Swarm, or any orchestrator such as Kubernetes, Rancher etc.
  • Both images are based on Alpine Linux instead of Ubuntu. This results in thiner images (for instance for SPIP 3.2: 237MB plus 92MB - Total 329MB against 648MB for original image)
  • There are two volumes: core and data. Core only contains distributed files and is erased each time PHP container is restarted. Data contains all content that can be written and modified, and is persistent.
  • There is no use of .htaccess file, AllowOverride is set to false to improve performance (following this). Instead, raw /var/www/html/data/htaccess.txt is used and included in Apache conf (and Apache doesn't start until this file is reachable). This file being in “data” volume, changes added by users are persistent.

As for original image, This docker use SPIP-cli project to manage an auto install for SPIP. It can be use to manage the SPIP with command line.

Supported Tags Respective Dockerfile Links

Both for spip-web and spip-fpm images

  • 4.0, latest
  • 3.2

Installation

Automated builds of the image are available on Dockerhub.

Available Environment Vars

  • SPIP_DB_SERVER: connexion method to the database sqlite3 or mysql (default: mysql)
  • SPIP_DB_PREFIX: SQL table preffix (default: spip)

For MySQL Database Only

The MySQL database must exist before installation. It will not be automatically created.

  • SPIP_DB_HOST: MySQL server hostname or IP (default: mysql)
  • SPIP_DB_LOGIN: MySQL user login (default: spip)
  • SPIP_DB_PASS: MySQL user password (default: spip)
  • SPIP_DB_NAME: MySQL database name (default: spip)

Admin Account

  • SPIP_ADMIN_NAME: account name (default: Admin)
  • SPIP_ADMIN_LOGIN: account login (default: admin)
  • SPIP_ADMIN_EMAIL: account email (default: admin@spip)
  • SPIP_ADMIN_PASS: account password (default: adminadmin)

PHP Vars

Can change PHP vars to optimize your installation.

  • PHP_MAX_EXECUTION_TIME (default: 60)
  • PHP_MEMORY_LIMIT (default: 256M)
  • PHP_POST_MAX_SIZE (default: 40M)
  • PHP_UPLOAD_MAX_FILESIZE (default 32M)
  • PHP_TIMEZONE (default: America/Guadeloupe)

Team

IPEOS

About

Dockerfiles for SPIP in production (stack version)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 51.6%
  • Dockerfile 48.4%