Skip to content

Commit

Permalink
feat: add piwigo
Browse files Browse the repository at this point in the history
  • Loading branch information
johackim committed Oct 3, 2024
1 parent cd56649 commit 760ce40
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 0 deletions.
50 changes: 50 additions & 0 deletions stacks/piwigo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# DOMAIN=example.com docker stack deploy -c piwigo.yml piwigo

version: '3.8'

services:
piwigo:
image: lscr.io/linuxserver/piwigo:${VERSION:-14.5.0}
environment:
- PUID=1000
- PGID=1000
- TZ=${TZ:-Etc/UTC}
volumes:
- ${VOLUME_PATH}config:/config
- ${VOLUME_PATH}gallery:/gallery
deploy:
labels:
- traefik.enable=true
- traefik.http.routers.piwigo-${NUMBER:-1}.rule=Host(`${DOMAIN:-piwigo.localhost}`)
- traefik.http.routers.piwigo-${NUMBER:-1}.entrypoints=${SCHEME:-https}
- traefik.http.routers.piwigo-${NUMBER:-1}.service=piwigo-${NUMBER:-1}
- traefik.http.routers.piwigo-${NUMBER:-1}.tls.certresolver=letsencrypt
- traefik.http.services.piwigo-${NUMBER:-1}.loadbalancer.server.port=80
networks:
- internal
- traefik

mariadb:
image: mariadb:10.5.9
volumes:
- ${VOLUME_PATH}mariadb:/var/lib/mysql:cached
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-myp@ssw0rd}
- MYSQL_DATABASE=${MYSQL_DATABASE:-piwigo}
- MYSQL_USER=${MYSQL_USER:-piwigo}
- MYSQL_PASSWORD=${MYSQL_PASSWORD:-myp@ssw0rd}
networks:
- internal

volumes:
config:
gallery:
mariadb:

networks:
internal:
driver: overlay
attachable: true
traefik:
external: true
name: traefik-net
30 changes: 30 additions & 0 deletions templates.json
Original file line number Diff line number Diff line change
Expand Up @@ -2049,6 +2049,36 @@
"url": "https://github.com/ethibox/awesome-stacks",
"stackfile": "stacks/omeka.yml"
}
},
{
"type": 2,
"title": "Piwigo",
"description": "Gestionnaire de photos open-source",
"categories": ["Photos"],
"manual": true,
"enabled": true,
"trial": 7,
"price": 19,
"logo": "https://i.imgur.com/KhMOja6.png",
"website": "https://fr.piwigo.org/",
"repository": {
"url": "https://github.com/ethibox/awesome-stacks",
"stackfile": "stacks/piwigo.yml"
},
"env": [
{
"name": "ADMIN_USERNAME",
"label": "Admin username",
"value": "admin",
"disabled": true
},
{
"name": "ADMIN_PASSWORD",
"label": "Admin password",
"type": "password",
"disabled": true
}
]
}
]
}

0 comments on commit 760ce40

Please sign in to comment.