piwigodocker/docker-compose.yml

43 lines
841 B
YAML
Raw Normal View History

2022-09-23 23:03:40 +02:00
---
version: "3.1"
services:
piwigo:
image: lscr.io/linuxserver/piwigo:latest
depends_on:
- db
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Zurich
volumes:
- ./config:/config
- ./gallery:/gallery
ports:
- 8080:80
restart: unless-stopped
db:
image: mariadb
restart: unless-stopped
environment:
MARIADB_DATABASE: piwigo
MARIADB_USER: piwigo
MARIADB_PASSWORD: Asdfqwer1234
MARIADB_ROOT_PASSWORD: Qwerasdf1234
2022-09-23 23:12:06 +02:00
# We do expose the database to make access and checking the data quite easy
2022-09-23 23:03:40 +02:00
ports:
- 3306:3306
expose:
- 3306
volumes:
- ./mariadb:/var/lib/mysql
# a little admin gui for mariadb / mysql
adminer:
image: adminer
restart: always
depends_on:
- db
ports:
- 8081:8080