/docker-spip

Dockerfile permettant de mettre en production un SPIP

Primary LanguageShellGNU General Public License v3.0GPL-3.0

Docker SPIP

Dockerfile to provide a ready to use SPIP in production.

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

  • 4.1, 4.1.7, latest (use PHP 8.1)
  • 4.0, 4.0.9 (use PHP 7.4)
  • 3.2, 3.2.17 (use PHP 7.4)

WARNING: if your backend is broken after upgrade you must remove image and files cache : To clear cache remove tmp/cache and local/cache-* folders

Installation

Automated builds of the image are available on Dockerhub and is the recommanded method of installation.

docker pull ipeos/spip:latest

Quick Start

docker run --name some-spip --link some-mysql:mysql -p 8080:80 -d ipeos/spip

Available Environment Vars

  • SPIP_AUTO_INSTALL: auto install spip database 1 or 0 (default: 1)
  • 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)

Contributing

This image was created by IPEOS for a purpose of web development training courses.

If you find this image useful here's how you can help:

  • Send a Pull Request with your awesome enhancements and bug fixes
  • Be a part of the community and help resolve Issues

Team

IPEOS

Contributors / Maintainers