1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-21 18:06:36 +02:00

add photoview

This commit is contained in:
kev 2022-08-30 14:24:50 +08:00
parent 4a1f9f7232
commit c8eba657b7
3 changed files with 41 additions and 0 deletions

View File

@ -407,6 +407,7 @@ A collection of delicious docker recipes.
- [x] owncloud
- [x] chocobozzz/peertube
- [x] dpage/pgadmin4
- [x] viktorstrate/photoview
- [x] phplist/phplist
- [x] phpmyadmin
- [x] pihole/pihole

8
photoview/README.md Normal file
View File

@ -0,0 +1,8 @@
photoview
=========
[Photoview][1] is a simple and user-friendly photo gallery that's made for
photographers and aims to provide an easy and fast way to navigate directories,
with thousands of high-resolution photos.
[1]: https://photoview.github.io/

View File

@ -0,0 +1,32 @@
version: "3.8"
services:
mysql:
image: mariadb:10.5
volumes:
- ./data/mysql:/var/lib/mysql
environment:
- MYSQL_DATABASE=photoview
- MYSQL_USER=photoview
- MYSQL_PASSWORD=photoview
- MYSQL_RANDOM_ROOT_PASSWORD=1
restart: unless-stopped
photoview:
image: viktorstrate/photoview:2
ports:
- "8000:80"
environment:
- PHOTOVIEW_DATABASE_DRIVER=mysql
- PHOTOVIEW_MYSQL_URL=photoview:photoview@tcp(mysql)/photoview
- PHOTOVIEW_LISTEN_IP=photoview
- PHOTOVIEW_LISTEN_PORT=80
- PHOTOVIEW_MEDIA_CACHE=/app/cache
# MAPBOX_TOKEN=<YOUR TOKEN HERE>
volumes:
- ./data/cache:/app/cache
- ./data/photos:/photos:ro
depends_on:
- mysql
restart: unless-stopped