From 9fd76222ee204ea656e35ba2a0df9be4be020f50 Mon Sep 17 00:00:00 2001 From: valentin Date: Wed, 22 Mar 2023 17:11:38 +0100 Subject: [PATCH] piwigo update --- piwigo/docker-compose.yml | 11 +++++++++++ portainer.json | 30 ++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) diff --git a/piwigo/docker-compose.yml b/piwigo/docker-compose.yml index 156ccf3..0f55e16 100644 --- a/piwigo/docker-compose.yml +++ b/piwigo/docker-compose.yml @@ -17,6 +17,17 @@ services: - traefik.http.routers.${ROUTER_NAME}-router.tls=true networks: - traefik_web + db: + image: mariadb:${MARIADB_VERSION} + restart: always + command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW + volumes: + - db:/var/lib/mysql + environment: + - MYSQL_ROOT_PASSWORD + - MYSQL_PASSWORD + - MYSQL_DATABASE + - MYSQL_USER volumes: piwigo_gallery: {} piwigo_config: {} diff --git a/portainer.json b/portainer.json index 300348f..d6d5d7c 100644 --- a/portainer.json +++ b/portainer.json @@ -157,6 +157,36 @@ "description": "Version de piwigo (latest si vide, list : https://hub.docker.com/r/linuxserver/piwigo/tags)", "default": "latest" }, + { + "name": "MARIADB_VERSION", + "label": "Mariadb version", + "description": "Version de mariadb (10.5 si vide, check requirements: https://piwigo.org/guides/install/requirements)", + "default": "10.5" + }, + { + "name": "MYSQL_DATABASE", + "label": "Mysql Database", + "description": "Version of Dokku to use ('latest' if empty)", + "default": "piwigo_db" + }, + { + "name": "MYSQL_ROOT_PASSWORD", + "label": "Mysql Root passsword", + "description": "Global hostname to be registered by Dokku", + "default": "R0o7P@sw0rD" + }, + { + "name": "MYSQL_USER", + "label": "Mysql user", + "description": "Host path to be bound to /mnt/dokku (`/var/lib/dokku` if empty)", + "default": "piwigo_user" + }, + { + "name": "MYSQL_PASSWORD", + "label": "Mysql password", + "description": "Image build cache path. Generally set to + '/home/dokku'", + "default": "P1w1g0PassDB" + }, { "name": "ROUTER_NAME", "label": "router host",