Set up Photoprism

This commit is contained in:
olomana 2023-02-16 23:16:35 +00:00
parent e3742db7ea
commit af924d9105
3 changed files with 39 additions and 0 deletions

1
photoprism/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
docker-compose.yml

12
photoprism/README.md Normal file
View File

@ -0,0 +1,12 @@
# Photoprism
Self hosted image gallery for PWS.
### Instructions
Copy `docker-compose.yml.blanked` --> `docker-compose.yml`.
Change the default admin credentials/site/etc.
Note that PHOTOPRISM_SITE_URL has the https prefix while the traefik label does not.
Start with `docker-compose up -d`.

View File

@ -0,0 +1,26 @@
version: "3"
networks:
traefik_traefik-network:
external: true
services:
photoprism:
image: photoprism/photoprism
container_name: photoprism
restart: always
networks:
- traefik_traefik-network
ports:
- "2342:2342"
volumes:
- /data/persistent/photoprism/storage:/photoprism/storage
- /data/persistent/photoprism/originals:/photoprism/originals
environment:
- PHOTOPRISM_ADMIN_PASSWORD=ADMIN_PASSWORD
- PHOTOPRISM_SITE_URL=HTTPS://SITE_URL.COM
labels:
- traefik.http.routers.gallery.rule=Host(`SITE_URL.COM`)
- traefik.http.routers.gallery.tls=true
- traefik.http.routers.gallery.tls.certresolver=lets-encrypt