piwigodocker/docker-compose.yml
2023-08-04 12:16:21 +02:00

44 lines
865 B
YAML

---
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
- 8443:443
restart: unless-stopped
db:
image: mariadb
restart: unless-stopped
environment:
MARIADB_DATABASE: piwigo
MARIADB_USER: piwigo
MARIADB_PASSWORD: Asdfqwer1234
MARIADB_ROOT_PASSWORD: Qwerasdf1234
# We do expose the database to make access and checking the data quite easy
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