Current repository hosts sources of the Galette docker image, created and maintained by Galette Community.
If you want to contribute to containerized galette, take a look here.
reminder.php
(with user www-data) every day at 8:30am to send reminder mailThis docker image has no included database, so you need to have that separately. Since you probably already are running docker, take a look here for a guide on how to run MariaDB in a container.
Important!: Following the instructions instructions for Galette versions earlier than 1.1.0 will not work, due to differences in volumes. If you are using a Galette version earlier than 1.1.0, please follow the earlier version of these instructions. Instructions for version 1.0.4 should work for all ealier versions, but if you run into trouble with those, you can follow version-specific instructions.
Galette has a really nice installer, that runs you through database setup and initial admin user creation. The installer creates a configuration file in the config
folder, which you should keep on a volume outside the docker image, for reuse when you upgrade to a newer version. You also have the option to create files for advanced configuration in the same config
folder (see step 6).
Therefore it is really important that you follow this guide exactly.
If you are upgrading from an earlier version, you can skip step 1, 2 and 4 below.
Create folders corresponding to all the volumes in the next step.
Optional: Create a file config.inc.php
in the config
folder. You can also copy this and alter it to suit your configuration. You can put in your database details up front, or wait until step 4.
Start a container with the version of galette you want (e.g. V1.1.0) and the proper list of volumes.
docker run -d -p 8080:80 --name galette
-v /path/to/config:/var/www/galette/config \
-v /path/to/data/attachments:/var/www/galette/data/attachments \
-v /path/to/data/cache:/var/www/galette/data/cache \
-v /path/to/data/files:/var/www/galette/data/files \
-v /path/to/data/logs:/var/www/galette/data/logs \
-v /path/to/data/photos:/var/www/galette/data/photos \
-v ./path/to/data/templates_c:/var/www/galette/data/templates_c \
galette/galette:1.1.0
Remember to replace ./path/to/
with your own path.
Run the installer: Open a browser to http://\<ip or server name>:8080/installer.php, e.g. http://localhost:8080/installer.php and follow the instructions.
You're done!
N.B.: You can check config.inc.php
in container.
docker exec galette cat /var/www/galette/config/config.inc.php
As a security precaution, you should delete the galette installation files after you finished installing or upgrading. Replace galette
with the actual container name, if you changed that in the commands above.
docker exec galette rm -r /var/www/galette/install
Advanced configuration:
To change some default behavior of Galette, add behavior.inc.php
to your config
folder (same folder as config.inc.php
). You can start with a copy of this file. You can change most things listed here, among them:
Galette provides a parameterized CSV exports system. Only one parameterized export is provided, but you can add your own: Add exports.yaml
to your config
folder (same folder as config.inc.php
). Read here for more info.
To provide your own CSS styling for galette, create a galette_local.css
on your host system, and add the folloing volume to your container parameters:
-v ./path/to/galette_local.css:/var/www/galette/webroot/themes/default/galette_local.css
Remember to replace ./path/to/
with your own path. Read here for more info on the styling.
From the main page of galette, click the plugin icon and manage the built-in modules. You can disable/enable them an initialize their database configuration from the UI.
docker-compose/galette/docker-compose.yml
and docker-compose/galette/.env
to the folder, where you want to persist your configuration..env
config
folder and optionally add a config.inc.php
file to that folder. You can copy the one from here and adjust it.docker-compose up -d
You're done.
docker-compose/galette-and-mariadb/docker-compose.yml
and docker-compose/galette-and-mariadb/.env
to the folder, where you want to persist your configuration.
10.11
is currently not released for arm/v7
so it can't be used for e.g. RaspBerry Pi 32 bit. However, you can switch to this unofficial mariadb-image instead: jbergstroem/mariadb-alpine:10.11.5
.env
file to set your database configuration. Don't skip this. An example of reverse proxy configuration for Nginx is provided.