Skip to content

Piwigo/piwigo-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Piwigo docker

An alpine based container to easily deploy piwigo !

Usage

You can follow the install guide and the update guide to get your container setup and up to date.

Users comming from LinuxServer can follow this guide : https://github.com/Piwigo/piwigo-docker/wiki/Migration-Guide-from-the-LinuxServer

If you want to have write permision in your piwigo folder see this page of the wiki : https://github.com/Piwigo/piwigo-docker/wiki/Copying-files-directly-to-piwigo-docker

Advanced options

If you prefer using a mysql container instead of mariadb edit compose.yaml and replace mariadb by mysql (be aware it is case sensitive).

If you want to use an existing MySQL/MariaDB database you already setup, use compose-nodb.yaml and rename it compose.yaml. You can either create .env with piwigo_port= or manually edit the compose file to change the exposed port.

Create a script at ./piwigo-data/scripts/user.sh to run commands before nginx and php start.
eg: to install extra dependencies like pandoc apk add --no-cache pandoc, available packages are listed at alpine pkg index.
Note that the script is run as root.

Container Architeture

Two containers :

  • Alpine with nginx and php-fpm
  • MariaDB

PHP modules are installed with alpine natives packages, php-fpm is running with the same user as nginx.

Container network trafic is internal in the piwigo-network bridge.

All persistent data is stored in ./piwigo-data/ :

  • piwigo piwigo files, when a new version is released, new files will be copied over
  • mysql database files from the mariaDB/mysql
  • scripts allow user to sideload dependencies and other files outside of piwigo

About

Alpine-based Docker image to deploy Piwigo quickly and reliably.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors